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

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 22 00:52:23 PDT 2017


Hahnfeld 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;
----------------
You might want to use `cudaGetErrorString(sync_error)` here to fulfill `%s`?


Repository:
  rL LLVM

https://reviews.llvm.org/D31206





More information about the Openmp-commits mailing list