projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb05c2f
)
[OpenMP][NVPTX] Guard the target name macro definition
author
Shilei Tian
<i@tianshilei.me>
Mon, 30 Jan 2023 19:02:22 +0000
(14:02 -0500)
committer
Shilei Tian
<i@tianshilei.me>
Mon, 30 Jan 2023 19:02:22 +0000
(14:02 -0500)
openmp/libomptarget/plugins/cuda/src/rtl.cpp
patch
|
blob
|
history
diff --git
a/openmp/libomptarget/plugins/cuda/src/rtl.cpp
b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
index
f797011
..
8710474
100644
(file)
--- a/
openmp/libomptarget/plugins/cuda/src/rtl.cpp
+++ b/
openmp/libomptarget/plugins/cuda/src/rtl.cpp
@@
-27,8
+27,12
@@
#include "omptarget.h"
#include "omptargetplugin.h"
+#ifndef TARGET_NAME
#define TARGET_NAME CUDA
+#endif
+#ifndef DEBUG_PREFIX
#define DEBUG_PREFIX "Target " GETNAME(TARGET_NAME) " RTL"
+#endif
#include "MemoryManager.h"