compiling error!!

when I was compiling fotran code with the paramneter
pgf95 -Minfo -Mfixed -Mcuda
there are some error:


Linking Fortran shared library …/…/lib/libBim31L.so
/usr/bin/ld: /opt/pgi/linux86-64/10.5/lib/libcudafor.a(dev_allo.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/opt/pgi/linux86-64/10.5/lib/libcudafor.a: could not read symbols: Bad value

what is the problem ? who can help me?

Hi Huang Yongcheng,

Are you trying to create a shared library? Unfortunately, using CUDA Fortran in a shared libraries isn’t supported yet. Though, you should be able to create a static library.

  • Mat

thanks, so when do you think this will be supported?