Make the OpenACC C++ acc_on_device wrapper "always inline" (was: [openacc] on_device fix)

2017-05-23 Thread Thomas Schwinge
Hi! On Thu, 29 Oct 2015 17:22:46 -0700, Nathan Sidwell wrote: > acc_on_device and it's builtin had a conflict. The function formally takes > an > enum argument, but the builtin takes an int -- primarily to avoid the > compiler > having to generate the enum type internally. > > This works f

[openacc] on_device fix

2015-10-29 Thread Nathan Sidwell
acc_on_device and it's builtin had a conflict. The function formally takes an enum argument, but the builtin takes an int -- primarily to avoid the compiler having to generate the enum type internally. This works fine for C, where the external declaration of the function (in openacc.h) matc