[OpenACC, f2py] Importing OpenACC code in python gives me __offload_func_table error
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Nov 7 17:04:00 GMT 2016
On Mon, Nov 07, 2016 at 05:31:20PM +0200, Vikram Singh wrote:
> Anyone?
Please, do not top post. It loses context
> On Mon, Oct 31, 2016 at 2:04 PM, Vikram Singh <vikramsingh001@gmail.com> wrote:
> >
> > f2py -c -m --f90flags='-fopenmp -fopenacc -foffload=nvptx-none -foffload=-O3
> > -O3 -fPIC' hello hello.f90 -L/usr/local/cuda/lib64 -lcublas -lcudart
> > -lgomp
> >
> > It compiles fine and makes the .so file but when I try to import in
> > python, I get the error,
> >
> > /home/Experiments/fortran_python/hello.cpython-35m-x86_64-linux-gnu.so:
> > undefined symbol: __offload_func_table
> >
> > I tried to search where __offload_func_table is defined but I only got
> > crtoffloadtable.o, but no library where it is defined and I can link
> > to.
fortran@gcc is a list for the discussion of the development
of gfortran. It is not a phython user support forum. Have
asked the f2py developers or on a f2py forum for help?
Instead of using f2py, have you considered using gfortran?
Does 'nm crtoffloadtable.o' show the symbol __offload_func_table?
If yes, then the answer is obvious.
--
Steve
More information about the Fortran
mailing list