From: Shilei Tian Date: Mon, 30 Jan 2023 19:02:22 +0000 (-0500) Subject: [OpenMP][NVPTX] Guard the target name macro definition X-Git-Tag: upstream/17.0.6~19168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=516ae48170df38d151a1ae5a83cd1f25011dcfa8;p=platform%2Fupstream%2Fllvm.git [OpenMP][NVPTX] Guard the target name macro definition --- diff --git a/openmp/libomptarget/plugins/cuda/src/rtl.cpp b/openmp/libomptarget/plugins/cuda/src/rtl.cpp index f797011..8710474 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"