[Openmp-commits] [PATCH] D156917: [OpenMP][libomptarget] Improve kernel initialization in plugins

Kevin Sala via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 2 10:18:52 PDT 2023


kevinsala created this revision.
kevinsala added reviewers: jdoerfert, jhuber6, tianshilei1992.
kevinsala added a project: OpenMP.
Herald added subscribers: sunshaoce, kerbowa, guansong, yaxunl, jvesely.
Herald added a project: All.
kevinsala requested review of this revision.
Herald added subscribers: openmp-commits, jplehr, sstefan1.

This patch modifies the plugins so that the initialization of `<Dev>KernelTy` objects
is done in the init method. Part of the initialization was done in the
`constructKernelEntry` method. Now this method is called `constructKernel`
and only allocates and constructs a `<Dev>KernelTy` object.

This patch prepares the kernel class for the new implementation of device
reductions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156917

Files:
  openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
  openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
  openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156917.546531.patch
Type: text/x-patch
Size: 14009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230802/d9bc71e9/attachment.bin>


More information about the Openmp-commits mailing list