We have a project that is written in Fortran.
Now I know this can be done using PGI compilers but I don't want to get stuck with licenses.
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 section 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?