[Openmp-commits] [openmp] 275259e - [OpenMP] Add `getComputeUnitKind` to generic-elf-64bit plugin

Michael Halkenhaeuser via Openmp-commits openmp-commits at lists.llvm.org
Fri Aug 25 04:15:08 PDT 2023


Author: Michael Halkenhaeuser
Date: 2023-08-25T07:14:43-04:00
New Revision: 275259eb9a62353007e84278e4755fe724c17332

URL: https://github.com/llvm/llvm-project/commit/275259eb9a62353007e84278e4755fe724c17332
DIFF: https://github.com/llvm/llvm-project/commit/275259eb9a62353007e84278e4755fe724c17332.diff

LOG: [OpenMP] Add `getComputeUnitKind` to generic-elf-64bit plugin

Make the generic-plugin report a corresponding CU kind -- instead of 'unknown'.

Reviewed By: tianshilei1992

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

Added: 
    

Modified: 
    openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp b/openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
index e48d1bbd65e907..46b547e2442243 100644
--- a/openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
+++ b/openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
@@ -131,6 +131,9 @@ struct GenELF64DeviceTy : public GenericDeviceTy {
   /// Deinitialize the device, which is a no-op
   Error deinitImpl() override { return Plugin::success(); }
 
+  /// See GenericDeviceTy::getComputeUnitKind().
+  std::string getComputeUnitKind() const override { return "generic-64bit"; }
+
   /// Construct the kernel for a specific image on the device.
   Expected<GenericKernelTy &>
   constructKernel(const __tgt_offload_entry &KernelEntry,


        


More information about the Openmp-commits mailing list