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
Diff Detail
Event Timeline
libomptarget/deviceRTLs/nvptx/CMakeLists.txt | ||
---|---|---|
146 | 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 | 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 | 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 | 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}) |
Hmm, why does Sync mean a new variable? If that's what you want, it should start with LIBOMPTARGET_NVPTX and be properly documented