This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget] Deprecate old method for setting the tripcount
ClosedPublic

Authored by jhuber6 on Aug 29 2022, 1:41 PM.

Details

Summary

Previously, the tripcount was set by a push call. We moved away from
this with the new interface that added the tripcount to the kernel
arguments struct, but kept around the old interface for legacy purposes
for the LLVM 15 release. This patch removes the support for the legacy
method.

This removes the support for the old method, but does not break
backwards compatibility. This will result in applications using the old
interface being slower when run on the device.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 29 2022, 1:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 1:41 PM
jhuber6 requested review of this revision.Aug 29 2022, 1:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 1:41 PM
jdoerfert accepted this revision.Aug 29 2022, 3:53 PM

LG, one nit.

openmp/libomptarget/src/LegacyAPI.cpp
169

Add a DP note saying this is deprecated and a no-op now. Like WARNING: ...

This revision is now accepted and ready to land.Aug 29 2022, 3:53 PM
jhuber6 updated this revision to Diff 456486.Aug 29 2022, 4:04 PM

Adding deprecation warning