[PATCH] D47849: [OpenMP][Clang][NVPTX] Enable math functions called in an OpenMP NVPTX target device region to be resolved as device-native function calls

Gheorghe-Teodor Bercea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 7 07:17:57 PDT 2018


gtbercea added inline comments.


================
Comment at: lib/Headers/__clang_cuda_device_functions.h:65
 }
+#if defined(__cplusplus)
 __DEVICE__ void __brkpt() { asm volatile("brkpt;"); }
----------------
Hahnfeld wrote:
> Why is that only valid for C++?
C does not support overloading of functions.


Repository:
  rC Clang

https://reviews.llvm.org/D47849





More information about the cfe-commits mailing list