Page MenuHomePhabricator

[OPENMP]Fix threadid in __kmpc_omp_taskwait call for dependent target calls.
ClosedPublic

Authored by ABataev on Jul 11 2019, 9:16 AM.

Details

Summary

We used to call __kmpc_omp_taskwait function with global threadid set to
0. It may crash the application at the runtime if the thread executing
target region is not a master thread.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Jul 11 2019, 9:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2019, 9:16 AM
grokos accepted this revision.Jul 15 2019, 4:43 PM

Looks good.

This revision is now accepted and ready to land.Jul 15 2019, 4:43 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2019, 8:51 AM