[Openmp-commits] [PATCH] D142064: [OpenMP][AMDGPU] Get rid of redundant macro def

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 18 17:08:30 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3ff1726cf802: [OpenMP][AMDGPU] Get rid of redundant macro def (authored by tianshilei1992).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142064/new/

https://reviews.llvm.org/D142064

Files:
  openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.cpp


Index: openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.cpp
===================================================================
--- openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.cpp
+++ openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.cpp
@@ -77,7 +77,9 @@
 #ifndef TARGET_NAME
 #error "Missing TARGET_NAME macro"
 #endif
+#ifndef DEBUG_PREFIX
 #define DEBUG_PREFIX "Target " GETNAME(TARGET_NAME) " RTL"
+#endif
 
 static bool checkForHSA() {
   // return true if dlopen succeeded and all functions found


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142064.490335.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230119/c1459ccc/attachment.bin>


More information about the Openmp-commits mailing list