[all-commits] [llvm/llvm-project] b7fcf5: [OpenMP][OpenMPIRBuilder] Add kernel launch codege...

Jan Leyonberg via All-commits all-commits at lists.llvm.org
Tue Aug 15 07:08:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b7fcf515150f7bdf052e08ebd192c8b644d2ec14
      https://github.com/llvm/llvm-project/commit/b7fcf515150f7bdf052e08ebd192c8b644d2ec14
  Author: Jan Sjodin <jan_sjodin at yahoo.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    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
    M mlir/test/Target/LLVMIR/omptarget-region-device-llvm.mlir
    M mlir/test/Target/LLVMIR/omptarget-region-llvm.mlir
    M mlir/test/Target/LLVMIR/omptarget-region-parallel-llvm.mlir

  Log Message:
  -----------
  [OpenMP][OpenMPIRBuilder] Add kernel launch codegen to emitTargetCall

This patch adds code emission in emitTargetCall to call the OpenMP runtime to
launch an kernel, and to call the fallback host implementation if the launch
fails.

Reviewed By: TIFitis, kiranchandramohan, jdoerfert

Differential Revision: https://reviews.llvm.org/D155633




More information about the All-commits mailing list