This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][Clang] Pass global thread ID to outlined function
AbandonedPublic

Authored by gtbercea on Mar 16 2018, 3:01 PM.

Details

Summary

The data sharing wrapper function needs to pass a valid global thread ID to the parallel outlined function when the parallel is combined with a for directive.

Diff Detail

Repository
rC Clang

Event Timeline

gtbercea created this revision.Mar 16 2018, 3:01 PM
ABataev accepted this revision.Mar 19 2018, 6:15 AM

Tests?

This revision is now accepted and ready to land.Mar 19 2018, 6:15 AM
ABataev requested changes to this revision.Mar 19 2018, 6:15 AM
This revision now requires changes to proceed.Mar 19 2018, 6:15 AM
gtbercea abandoned this revision.Mar 19 2018, 7:45 AM

After some internal discussion with @ABataev he is going to replace the manual computation of the thread ID with a call to the runtime in a new patch.