This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][deviceRTLs] Update return type of function __kmpc_parallel_level
ClosedPublic

Authored by tianshilei1992 on Jul 20 2021, 11:00 AM.

Details

Summary

In deviceRTLs, the parallel level is stored in a shared variable of type uint8_t.
__kmpc_parallel_level currently returns a 16-bit interger. This patch first
changes the return type of the function to uint8_t, same as the shared variable,
and then corrects function type which was updated in D105955.

Diff Detail

Event Timeline

tianshilei1992 requested review of this revision.Jul 20 2021, 11:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Jul 20 2021, 12:42 PM
This revision was landed with ongoing or failed builds.Jul 20 2021, 12:45 PM
This revision was automatically updated to reflect the committed changes.