Page MenuHomePhabricator

[OpenMP][Clang] Move device global stack init before master-workers split

Authored by gtbercea on Mar 15 2018, 2:11 PM.



This patch moves the call to the stack init data sharing function before the splitting of threads into master and workers. This ensures that the initialization happens for all active warp master threads. Test is modified appropriately.

Diff Detail

Event Timeline

gtbercea created this revision.Mar 15 2018, 2:11 PM
This revision is now accepted and ready to land.Mar 16 2018, 6:53 AM
gtbercea abandoned this revision.Mar 21 2018, 11:55 AM

This leads to usage of statically allocated shared data before their initialization in runtime structures by master thread in kernel_init() function. New patch available with worker and master-side initialization.