On Thu, Sep 24, 2015 at 11:50:56AM +0200, Bernd Schmidt wrote: > On 09/24/2015 10:40 AM, Jakub Jelinek wrote: > >Iff GCC 5 compiled offloaded OpenACC/PTX code will always do host fallback > >anyway because of the incompatible PTX version, then why don't you just > >do > > goacc_save_and_set_bind (acc_device_host); > > fn (hostaddrs); > > goacc_restore_bind (); > >and nothing else in GOACC_parallel? > > That was essentially my suggestion. > > >Other than that, I think Bernd has covered all the issues I had. > > What is your opinion on the forward compatibility issue? Is it something we > care about?
For the (unlikely) case of using a newer GCC compiled binaries or libraries with older libgomp, I'd prefer something other than silent crash. Often it will not just start at all, because the binary needs newer symbols from the library, if that is not the case, then supposedly ignoring some newer features is fine, gomp_fatal is acceptable too though, but assert failure is not. Jakub