[Openmp-commits] [clang] [compiler-rt] [llvm] [openmp] [PGO][Offload] Add GPU profiling flags to driver (PR #94268)
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Wed Feb 12 07:53:48 PST 2025
https://github.com/jhuber6 requested changes to this pull request.
My preference is that we do not introduce new flags, but use the ones we have already and use `-Xarch` as the canonical way to do it.
```
-fsanitize_instr_generate // Both host and all devices
-Xarch_host -fsanitize_instr_generate // Only on the host
-Xarch_device -fsanitize_instr_generate // Only on the devices
-Xarch_nvptx64 -fsanitize_instr_generate // Only on NVPTX targets
-Xarch_gfx90a -fsanitize_instr_generate // Only on gfx90a
```
All of this handling should be done for you by the `getArgsForToolchain()` interface that's called before we generate the arguments from the tools. So, all this should require is tests + documentation for this usage. You should just be able to replace existing checks on these new flags to the standard ones.
https://github.com/llvm/llvm-project/pull/94268
More information about the Openmp-commits
mailing list