[PATCH] D51554: [CUDA][OPENMP][NVPTX]Improve logic of the debug info support.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 31 14:08:49 PDT 2018

tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.

Nice. So, in effect, for optimized builds we'll generate pre-DWARF line info only, unless --cuda-noopt-device-debug is specified.
Will this deal with the warnings about back-end being unable to handle particular debug options?

On a side note, when DWARF is functional in NVPTX we need to seriously consider per-GPU control for it. Enabling debug info blows up cubin size (ptxas apparently packs compressed PTX inside *cubin*) and we run into ELF reloc overflows in some tensorflow builds if all GPU variants carry it.

  rC Clang


More information about the cfe-commits mailing list