[llvm] [OpenMP] Port the OpenMP device runtime to direct C++ compilation (PR #123673)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 05:50:05 PST 2025


================
@@ -15,14 +15,10 @@
 #include "Interface.h"
 #include "Mapping.h"
 
-#pragma omp begin declare target device_type(nohost)
-
 using namespace ompx;
 
 namespace impl {
 
-bool isSharedMemPtr(const void *Ptr) { return false; }
----------------
jhuber6 wrote:

This is pure device code, this only exists to make the variant system happy because it still needs to parse for the CPU compilation. This completely removes that inconvenient requirement. 

https://github.com/llvm/llvm-project/pull/123673


More information about the llvm-commits mailing list