[Openmp-commits] [PATCH] D31206: [OpenMP] CUDA plugin: More descriptive error messages

George Rokos via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 22 10:19:28 PDT 2017


grokos added inline comments.


================
Comment at: libomptarget/plugins/cuda/src/rtl.cpp:652
+  DP("Kernel execution error at " DPxMOD ", %s.\n", DPxPTR(tgt_entry_ptr),
+      sync_error);
     return OFFLOAD_FAIL;
----------------
Hahnfeld wrote:
> You might want to use `cudaGetErrorString(sync_error)` here to fulfill `%s`?
Correct, done in new diff.


https://reviews.llvm.org/D31206





More information about the Openmp-commits mailing list