Skip to content

Commit

Permalink
[OpenMP] Add getComputeUnitKind to generic-elf-64bit plugin
Browse files Browse the repository at this point in the history
Make the generic-plugin report a corresponding CU kind -- instead of 'unknown'.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D158542
  • Loading branch information
mhalk committed Aug 25, 2023
1 parent d282781 commit 275259e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 275259e

Please sign in to comment.