This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Initialize global memory stack only once.
ClosedPublic

Authored by gtbercea on Mar 21 2018, 1:09 PM.

Details

Summary

The global stack initialization function may be called multiple times. The initialization of the shared memory slots should only happen when the function is called for the first time for a given warp master thread.

Diff Detail

Repository
rOMP OpenMP

Event Timeline

gtbercea created this revision.Mar 21 2018, 1:09 PM
grokos accepted this revision.Mar 21 2018, 1:18 PM

Looks good.

This revision is now accepted and ready to land.Mar 21 2018, 1:18 PM
This revision was automatically updated to reflect the committed changes.