diff -ru trunk-orig/libgomp/plugin/plugin-nvptx.c trunk-work/libgomp/plugin/plugin-nvptx.c --- trunk-orig/libgomp/plugin/plugin-nvptx.c 2018-12-18 18:16:57.804871502 +0800 +++ trunk-work/libgomp/plugin/plugin-nvptx.c 2018-12-18 22:07:43.483068743 +0800 @@ -1364,16 +1364,12 @@ struct goacc_asyncqueue * GOMP_OFFLOAD_openacc_async_construct (void) { + CUstream stream = NULL; + CUDA_CALL_ERET (NULL, cuStreamCreate, &stream, CU_STREAM_DEFAULT); + struct goacc_asyncqueue *aq = GOMP_PLUGIN_malloc (sizeof (struct goacc_asyncqueue)); - aq->cuda_stream = NULL; - CUDA_CALL_ASSERT (cuStreamCreate, &aq->cuda_stream, CU_STREAM_DEFAULT); - if (aq->cuda_stream == NULL) - GOMP_PLUGIN_fatal ("CUDA stream create NULL\n"); - - CUDA_CALL_ASSERT (cuStreamSynchronize, aq->cuda_stream); - - + aq->cuda_stream = stream; return aq; }