This is the only place that defines this prefix in a header file and
was thus overriding and redefining other users of it. If we must use it
in a header file, at least repsect its old values.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
In addition to this, we also have definition of the macro in CMake files. I think we need to define them in a unified manner: either all in CMake file, or in header.
Comment Actions
I've wanted to do a complete overhaul of libomptarget diagnostics for awhile now. This is just the fast way to get something nominally functional. In the future we probably want routines that map into the LLVM libraries for formatting and printing.
Comment Actions
It seems like this patch introduced some new warnings:
In file included from /home/ac.shilei.tian/Documents/vscode/llvm-project/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp:22: /home/ac.shilei.tian/Documents/vscode/llvm-project/openmp/libomptarget/include/OmptCallback.h:87:9: warning: pragma pop_macro could not pop 'DEBUG_PREFIX', no matching push_macro [-Wignored-pragmas] 87 | #pragma pop_macro("DEBUG_PREFIX") | ^ 1 warning generated. [46/54] Building CXX object libomptarget/plugins-nextgen/amdgpu/CMakeFiles/omptarget.rtl.amdgpu.dir/src/rtl.cpp.o In file included from /home/ac.shilei.tian/Documents/vscode/llvm-project/openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp:26: /home/ac.shilei.tian/Documents/vscode/llvm-project/openmp/libomptarget/include/OmptCallback.h:87:9: warning: pragma pop_macro could not pop 'DEBUG_PREFIX', no matching push_macro [-Wignored-pragmas] 87 | #pragma pop_macro("DEBUG_PREFIX") | ^ 1 warning generated.
Comment Actions
Duh, forgot there was a second header guard for OMPT_SUPPORT. Didn't get that locally since I guess it's on. Simply needs to be moved before the penultimate #endif.