This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Considering OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT in NextGen plugins
AbandonedPublic

Authored by kevinsala on Dec 21 2022, 6:44 AM.

Details

Summary

Until now both OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT were accidentally ignored in the NextGen plugins. The maximum values reported by the devices were always used to compute the maximum number of teams and threads per team. This patch fixes this error and considers the values defined by those envars.

Diff Detail

Event Timeline

kevinsala created this revision.Dec 21 2022, 6:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2022, 6:44 AM
kevinsala requested review of this revision.Dec 21 2022, 6:44 AM

I thought the standard introduced device versions of these. Do we still honor these ones for the device? Can someone double check, please.

kevinsala abandoned this revision.Mar 2 2023, 12:53 AM

Already fixed in D145105.

Sorry, didn't notice this revision.