Page MenuHomePhabricator

[OpenMP] Add RTL function for getting number of threads in block.

Authored by jhuber6 on Oct 8 2021, 5:10 PM.



This patch adds support for the
__kmpc_get_hardware_num_threads_in_block function that returns the
number of threads. This was missing in the new runtime and was used by
the AMDGPU plugin which prevented it from using the new runtime. This
patchs also unified the interface for getting the thread numbers in the

Originally authored by jdoerfert.

Diff Detail

Event Timeline

jhuber6 created this revision.Oct 8 2021, 5:10 PM
jhuber6 requested review of this revision.Oct 8 2021, 5:10 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 8 2021, 5:10 PM
JonChesterfield accepted this revision.Oct 8 2021, 5:16 PM
JonChesterfield added a subscriber: JonChesterfield.

Great! I like the decrease in complexity of the compiler. Pretty close to dropping the nvptx and amdgpu subclasses entirely

This revision is now accepted and ready to land.Oct 8 2021, 5:16 PM
jhuber6 updated this revision to Diff 378393.Oct 8 2021, 6:32 PM

Fixing tests.