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

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 3 07:28:24 PDT 2023


tianshilei1992 added inline comments.


================
Comment at: openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp:1906
+    // Allocate and construct the AMDGPU kernel.
     AMDGPUKernelTy *AMDKernel = Plugin::get().allocate<AMDGPUKernelTy>();
+    new (AMDKernel) AMDGPUKernelTy(KernelEntry.name, ExecMode);
----------------
Potentially this can fail right?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156917/new/

https://reviews.llvm.org/D156917



More information about the Openmp-commits mailing list