Page MenuHomePhabricator

[OpenMP][libomptarget] Enable usage of shared memory slots
ClosedPublic

Authored by gtbercea on Mar 14 2018, 11:39 AM.

Details

Summary

Allow the runtime to use the existing shared memory statically allocated slots.

When a variable is globalized, the underlying memory can be either shared or global memory (both have block-wide visibility). In this case, we allow that the storage to use a limited amount of shared memory that has been statically allocated already. Only if shared memory doesn't prove to be enough do we then invoke malloc() to create a new global memory slot.

Diff Detail

Repository
rL LLVM

Event Timeline

gtbercea created this revision.Mar 14 2018, 11:39 AM
gtbercea updated this revision to Diff 138561.Mar 15 2018, 8:27 AM

Rebase patch.

gtbercea updated this revision to Diff 138566.Mar 15 2018, 8:33 AM

Rebase patch.

grokos accepted this revision.Mar 15 2018, 8:35 AM

This is obviously good to go!

This revision is now accepted and ready to land.Mar 15 2018, 8:35 AM
This revision was automatically updated to reflect the committed changes.