Commit 275259eb authored by Michael Halkenhaeuser's avatar Michael Halkenhaeuser
Browse files

[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
parent d2827812
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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,