This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][Offloading] Add -g when compiling deviceRTLs in debug mode
ClosedPublic

Authored by tianshilei1992 on Jul 17 2021, 6:07 PM.

Details

Summary

Currently when we compile the project in debug mode, -g will not be added to
compilation flag. The bc files generated in different mode are of different size.
When using GPU debuggers like cuda-gdb, it is expected to provide more info
with a debug version of bc lib.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Jul 17 2021, 6:07 PM
tianshilei1992 requested review of this revision.Jul 17 2021, 6:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2021, 6:07 PM
JonChesterfield accepted this revision.Jul 17 2021, 9:35 PM

LG

openmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
56

Should probably rename this, can reasonably imagine someone wants a debug version of one target and not the other. Separate patch though.

This revision is now accepted and ready to land.Jul 17 2021, 9:35 PM