This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Openacc launch API


On 09/24/2015 11:56 AM, Jakub Jelinek wrote:
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.

In that case the patch is OK with the change suggested above.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]