On Fri, 11 Sep 2015, Jakub Jelinek wrote: > On Fri, Sep 11, 2015 at 03:26:04PM +0000, Joseph Myers wrote: > > On Fri, 11 Sep 2015, Bernd Schmidt wrote: > > > > > I expect you know best what to do in the OpenACC testsuite driver, but you > > > might want to run the libgomp.exp parts by Jakub. If the testsuite parts > > > are > > > independent of the rest of the patch, please repost them separately. > > > > Jakub? The testsuite changes and the rest of the patch depend on each > > other. > > So, do I understand well that you'll call GOMP_set_offload_targets from > constructs of all shared libraries (and the binary) that contain offloaded > code? If yes, that is surely going to fail the assertions in there. > You can dlopen such libraries etc. What if you link one library with > -fopenmp=nvptx-none and another one with -fopenmp=x86_64-intelmicemul-linux?
Thomas (I think you're back next week), any comments on how shared libraries with different offloading selected fit into your design (including the case where some but not all of the executable / shared libraries specify -foffload=disable)? -- Joseph S. Myers jos...@codesourcery.com