This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Remove unused virtual functions in GenericKernelTy
ClosedPublic

Authored by kevinsala on Aug 2 2023, 8:00 AM.

Details

Summary

The virtual functions getDefaultNumBlocks and getDefaultNumThreads from kernels are only forwarding the call to the generic device's ones. This patch removes these two functions from the kernels (and their derived ones). Now calls are made directly to the device's functions.

Diff Detail

Event Timeline

kevinsala created this revision.Aug 2 2023, 8:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2023, 8:00 AM
kevinsala requested review of this revision.Aug 2 2023, 8:00 AM
jhuber6 accepted this revision.Aug 2 2023, 8:01 AM
This revision is now accepted and ready to land.Aug 2 2023, 8:01 AM