[Openmp-commits] [openmp] 516ae48 - [OpenMP][NVPTX] Guard the target name macro definition
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Mon Jan 30 11:03:09 PST 2023
Author: Shilei Tian
Date: 2023-01-30T14:02:22-05:00
New Revision: 516ae48170df38d151a1ae5a83cd1f25011dcfa8
URL: https://github.com/llvm/llvm-project/commit/516ae48170df38d151a1ae5a83cd1f25011dcfa8
DIFF: https://github.com/llvm/llvm-project/commit/516ae48170df38d151a1ae5a83cd1f25011dcfa8.diff
LOG: [OpenMP][NVPTX] Guard the target name macro definition
Added:
Modified:
openmp/libomptarget/plugins/cuda/src/rtl.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp
index f797011c80ea7..871047494c27a 100644
--- 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"
More information about the Openmp-commits
mailing list