Page MenuHomePhabricator

[OPENMP][NVPTX]Simplify use of the thread_id in full runtime mode, NFC.
Needs ReviewPublic

Authored by ABataev on May 23 2019, 7:42 AM.



ThreadId should not be stored in the runtime class, we can get its value
depending on the current parallel level.

Event Timeline

ABataev created this revision.May 23 2019, 7:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2019, 7:42 AM
jdoerfert added inline comments.Jul 9 2019, 11:26 AM

Can another thread change the parallel level while it is cached in the local variable parLevel?

ABataev marked an inline comment as done.Jul 9 2019, 11:37 AM
ABataev added inline comments.

No. The parlevel is per warp and threads in the warp are executed synchronously.