[all-commits] [llvm/llvm-project] fde2d2: [PGO][OpenMP] Instrumentation for GPU devices (Rev...

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Wed Aug 21 23:11:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fde2d23ee2a204050a210f2f7b290643a272f737
      https://github.com/llvm/llvm-project/commit/fde2d23ee2a204050a210f2f7b290643a272f737
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M clang/lib/CodeGen/CodeGenPGO.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/lib/ProfileData/InstrProf.cpp
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M offload/DeviceRTL/CMakeLists.txt
    A offload/DeviceRTL/include/Profiling.h
    A offload/DeviceRTL/src/Profiling.cpp
    M offload/plugins-nextgen/common/CMakeLists.txt
    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/CMakeLists.txt
    M offload/test/lit.cfg
    M offload/test/lit.site.cfg.in
    A offload/test/offloading/pgo1.c

  Log Message:
  -----------
  [PGO][OpenMP] Instrumentation for GPU devices (Revision of #76587) (#102691)

This pull request is a revised version of #76587. This pull request
fixes some build issues that were present in the previous version of
this change.

> This pull request is the first part of an ongoing effort to extends
PGO instrumentation to GPU device code. This PR makes the following
changes:
>
> - Adds blank registration functions to device RTL
> - Gives PGO globals protected visibility when targeting a supported
GPU
> - Handles any addrspace casts for PGO calls
> - Implements PGO global extraction in GPU plugins (currently only
dumps info)
>
> These changes can be tested by supplying `-fprofile-instrument=clang`
while targeting a GPU.



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