[all-commits] [llvm/llvm-project] 76b2b9: [OMPIRBuilder] Support runtime number of teams and...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Thu Jan 9 03:53:33 PST 2025


  Branch: refs/heads/users/skatrak/host-eval-04-ompirbuilder-teams-threads
  Home:   https://github.com/llvm/llvm-project
  Commit: 76b2b9f55e73a533e2a6aa0c98ebb1509e2d7dbd
      https://github.com/llvm/llvm-project/commit/76b2b9f55e73a533e2a6aa0c98ebb1509e2d7dbd
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

  Log Message:
  -----------
  [OMPIRBuilder] Support runtime number of teams and threads, and SPMD mode

This patch introduces a `TargetKernelRuntimeAttrs` structure to hold
host-evaluated `num_teams`, `thread_limit`, `num_threads` and trip count values
passed to the runtime kernel offloading call.

Additionally, kernel type information is used to influence target device code
generation and the `IsSPMD` flag is replaced by `ExecFlags`, which provide more
granularity.



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