Re: [gomp4] Tweak GOMP_target{,_data,_update} arguments

2013-09-26 Thread Ilya Verbin
On 19 Sep 11:23, Jakub Jelinek wrote: > that. Another complication is dependent shared libraries. > Consider > liba.c: > #pragma omp declare target > int i; > int foo (void) > { > return ++i; > } > #pragma omp end declare target > main.c: > #pragma omp declare target > extern int i; > extern int

Re: [gomp4] Tweak GOMP_target{,_data,_update} arguments

2013-09-19 Thread Jakub Jelinek
On Thu, Sep 19, 2013 at 12:58:28PM +0400, Michael V. Zolotukhin wrote: > Thanks for the explanation, it's getting a bit clearer, though I still have > some > questions. > > > __OPENMP_TARGET__ would be a linker plugin inserted symbol at the start of > > some linker plugin created data section, wh

Re: [gomp4] Tweak GOMP_target{,_data,_update} arguments

2013-09-19 Thread Michael V. Zolotukhin
Hi Jakub, Thanks for the explanation, it's getting a bit clearer, though I still have some questions. > __OPENMP_TARGET__ would be a linker plugin inserted symbol at the start of > some linker plugin created data section, which would start with some header > and then data. > Say > uleb128 number_

Re: [gomp4] Tweak GOMP_target{,_data,_update} arguments

2013-09-18 Thread Jakub Jelinek
On Wed, Sep 18, 2013 at 06:13:25PM +0400, Michael V. Zolotukhin wrote: > > As discussed earlier, I'd like to pass __OPENMP_TARGET__ argument to > > all of GOMP_target{,_data,_update}, so that all those functions > > can get at the offloading data section in the shared library or binary > > making t

Re: [gomp4] Tweak GOMP_target{,_data,_update} arguments

2013-09-18 Thread Michael V. Zolotukhin
> As discussed earlier, I'd like to pass __OPENMP_TARGET__ argument to > all of GOMP_target{,_data,_update}, so that all those functions > can get at the offloading data section in the shared library or binary > making the call, so that the first time they encounter such a call > in the shared libr