Ok, I got it to compile using
f2py -c -m --f90flags='-fopenmp -fopenacc -foffload=nvptx-none -foffload=-O3
-O3 -fPIC' hello hello.f90 -L/usr/local/cuda/lib64 -lcublas -lcudart
-lgomp
But now I get the import error,
/home/Experiments/fortran_python/hello.cpython-35m-x86_64-linux-gnu.so:
undefined
> The __numpy_ufunc__ functionality is the last bit I want for 1.12.0, the
> rest of the remaining changes I can kick forward to 1.13.0. I will start
> taking a look tomorrow, probably starting with Nathaniel's work.
Great! I'll revive the Quantity PRs that implement __numpy_ufunc__!
-- Marten