The LIBOMPTARGET_NVPTX_DEBUG flag is inconsistent between using nvcc to generate .a file and clang to generate .bc file. Sync the two setting so we can get debug messages from the bc file path as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
libomptarget/deviceRTLs/nvptx/CMakeLists.txt | ||
---|---|---|
146 ↗ | (On Diff #142040) | Hmm, why does Sync mean a new variable? If that's what you want, it should start with LIBOMPTARGET_NVPTX and be properly documented |
libomptarget/deviceRTLs/nvptx/CMakeLists.txt | ||
---|---|---|
146 ↗ | (On Diff #142040) | Thanks. I put a typo there, it should be set(BC_DEBUG FALSE CACHE BOOL As I used in the next few lines. BC_DEBUG is an internal var. The behavior to sync is the Cmake command line def LIBOMPTARGET_NVPTX_DEBUG |
libomptarget/deviceRTLs/nvptx/CMakeLists.txt | ||
---|---|---|
146 ↗ | (On Diff #142040) | Look at this again, I am thinking I don't need these few lines. The BC_DEBUG will be defined either way in the following if block. |
libomptarget/deviceRTLs/nvptx/CMakeLists.txt | ||
---|---|---|
146 ↗ | (On Diff #142040) | In that case it must not be CACHE. You can define BC_DEBUG to -DOMPTARGET_NVPTX_DEBUG=0 and overwrite it if(${LIBOMPTARGET_NVPTX_DEBUG}) |