[Openmp-commits] [PATCH] D77005: [OpenMP] Optimized stream selection by scheduling data mapping for the same target region into a same stream

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Apr 5 10:08:34 PDT 2020


jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.

One nit, otherwise LGTM.



================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:744
 
-  err = cuStreamSynchronize(Stream);
-  if (err != CUDA_SUCCESS) {
-    DP("Error when synchronizing async data transfer from host to device. "
-       "Pointers: host = " DPxMOD ", device = " DPxMOD ", size = %" PRId64 "\n",
-       DPxPTR(hst_ptr), DPxPTR(tgt_ptr), size);
-    CUDA_ERR_STRING(err);
-    return OFFLOAD_FAIL;
+    return __tgt_rtl_synchronize(device_id, &async_info);
   }
----------------
Style: Remove the else case, there is a return before. Same below.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77005/new/

https://reviews.llvm.org/D77005





More information about the Openmp-commits mailing list