On Thu, Dec 18, 2014 at 06:41:18PM +0100, Ilya Verbin wrote: > > What we're doing in OpenACC offloading testing (gomp-4_0-branch), is in > > the libgomp.oacc-c/c.exp (etc.) file cycle through all the available > > offloading devices, and then in there -- I think -- such options should > > be set, that are specific to one particular offloading device/compiler? > > I have not tested a compiler, configured to support 2 different > offloading targets, so there might be some corner cases. > > In this place I don't see any problems, at least for the case with > installed offloading compilers. > One -B allows to find mkoffload in lto-wrapper:compile_offload_image. > This function tries to open all paths + '/accel/target_name/mkoffload' > suffix. So, there should be no conflicts. > Another -B allows mkoffload to find target driver. It tries to open > 'host_name-accel-target_name-gcc', so, there also should be no > conflicts. > > However, I still did not tried to enable 'make check' with > non-installed offloading compilers. Probably such target specific > paths can help there.
Yeah, generally we want to be able to support all 3 (or 4 etc.) compilers installed into the same DESTDIR and prefix, so extra -B arguments in there should not break anything, for each of the offloading compilers you'd just add what -B options it needs. Jakub