On 11/19/2014 11:44 AM, Bernd Schmidt wrote: > I'm attaching the patch in the form in which I've made it work locally, > plus Cesar's patch which is needed on top of it. Julian, you'll probably > want to look for that patch since it also included testsuite changes. > Cesar - have a look over this please and maybe explain for review > purposes what your patch does.
Julian's initial libgomp patch set somewhat diverged both from our internal tree and gomp-4_0-branch. I think he was trying to get an earlier snapshot of gomp-4_0-branch to play nicely with gomp4-offload branch, and my patch went in kind of late. Anyway, here's the like to my original patch: https://gcc.gnu.org/ml/gcc-patches/2014-10/msg03392.html The patch introduces two new libgomp-internal functions GOACC_get_thread_num and GOACC_get_num_thread. There's some more details in the link. Cesar