[Openmp-commits] [PATCH] D158542: [WIP][OpenMP] generic-elf-64bit plugin extension

Michael Halkenhäuser via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Aug 22 13:08:20 PDT 2023


mhalk created this revision.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
mhalk requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, jplehr, sstefan1.
Herald added a project: OpenMP.

This is a stub, since there are currently no clear objectives on how
we want to proceed with this plugin.
Should we e.g. try to determine certain devices during plugin init?


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158542

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


Index: openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
+++ openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
@@ -131,6 +131,9 @@
   /// 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,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158542.552482.patch
Type: text/x-patch
Size: 698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230822/71370085/attachment.bin>


More information about the Openmp-commits mailing list