Skip to content

Commit

Permalink
[OpenMP][CUDA] Get rid of redundant macro def
Browse files Browse the repository at this point in the history
Resolve warning of `TARGET_NAME` macro redefinition.

Reviewed By: jhuber6

Differential Revision: https://reviews.llvm.org/D145307
  • Loading branch information
Shao-Ce SUN committed Mar 4, 2023
1 parent 92523a3 commit 420d2fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openmp/libomptarget/plugins/cuda/dynamic_cuda/cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@ DLWRAP_FINALIZE()
#define DYNAMIC_CUDA_PATH "libcuda.so"
#endif

#ifndef TARGET_NAME
#define TARGET_NAME CUDA
#endif
#ifndef DEBUG_PREFIX
#define DEBUG_PREFIX "Target " GETNAME(TARGET_NAME) " RTL"
#endif

static bool checkForCUDA() {
// return true if dlopen succeeded and all functions found
Expand Down

0 comments on commit 420d2fc

Please sign in to comment.