OpenACC-Library-Interoperability

Vikram Singh vikramsingh001@gmail.com
Tue Apr 12 15:00:00 GMT 2016


We have a project that is written in gfortran.

I am trying to see whether we could use OpenACC in our project. I got
gcc5.2 installed  using instructions here.

https://github.com/olcf/OLCFHack15

Now I want to do something similar to what is stated here.

https://gcc.gnu.org/onlinedocs/libgomp/OpenACC-Library-Interoperability.html

More specifically what is stated in secion 8.3. I am trying to exactly
reproduce it using gfortran. Unfortunately I don't see how I can do it
in fortran. In the example,

d_X = acc_copyin(&h_X[0], N * sizeof (float));

This allows d_X to be directly used in s = cublasSaxpy(h, N, &alpha,
d_X, 1, d_Y, 1);

But in fortran, the acc_copyin does not return anything.


So how would I replicate the case in Fortran?

Thanks and Regards,
Vikram



More information about the Fortran mailing list