[all-commits] [llvm/llvm-project] 9e5c13: [PGO][Offload] Profile profraw generation for GPU...

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Tue Feb 11 21:31:16 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e
      https://github.com/llvm/llvm-project/commit/9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M offload/include/Shared/Environment.h
    M offload/plugins-nextgen/common/include/GlobalHandler.h
    M offload/plugins-nextgen/common/src/GlobalHandler.cpp
    M offload/plugins-nextgen/common/src/PluginInterface.cpp
    M offload/test/lit.cfg
    M offload/test/lit.site.cfg.in
    M offload/test/offloading/pgo1.c
    M openmp/docs/design/Runtimes.rst

  Log Message:
  -----------
   [PGO][Offload] Profile profraw generation for GPU instrumentation #76587  (#93365)

This pull request is the second part of an ongoing effort to extends PGO
instrumentation to GPU device code and depends on #76587. This PR makes
the following changes:

- Introduces `__llvm_write_custom_profile` to PGO compiler-rt library.
This is an external function that can be used to write profiles with
custom data to target-specific files.
- Adds `__llvm_write_custom_profile` as weak symbol to libomptarget so
that it can write the collected data to a profraw file.
- Adds `PGODump` debug flag and only displays dump when the
aforementioned flag is set



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list