[OpenMP][NVPTX] Guard the target name macro definition
authorShilei Tian <i@tianshilei.me>
Mon, 30 Jan 2023 19:02:22 +0000 (14:02 -0500)
committerShilei Tian <i@tianshilei.me>
Mon, 30 Jan 2023 19:02:22 +0000 (14:02 -0500)
openmp/libomptarget/plugins/cuda/src/rtl.cpp

index f797011..8710474 100644 (file)
 #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"