[AMBER] Amber22 CUDA compilation problem

From: Irek Porebski via AMBER <amber.ambermd.org>
Date: Tue, 30 May 2023 13:06:01 +0000

Hi All

I am trying to compile Amber22 with CUDA support. I tried many version of CUDA and GCC but sooner or later compilation failed.
My current configuration is

Currently Loaded Modules:
  1) cmake/3.25.3 3) bison-3.0.4-gcc-7.2.0-nl7vmez 5) cuda/11.4.1 7) boost/1.75.0
  2) python-3.7.0-gcc-12.3.0-tvnfvfi 4) anaconda/3.6 6) gnu7/7.3.0 8) fftw-3.3.7-gcc-4.8.5-5igtfs5

And the compilation ends like this:

[ 14%] Building CXX object AmberTools/src/cew/CMakeFiles/libcew.dir/iface.cpp.o
[ 14%] Linking CXX shared library libcew.so
/usr/bin/ld: /usr/local/lib/libfftw3.a(apiplan.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(mapflags.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(alloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
Could you please help me with this or point where to search for more information?
...
/usr/bin/ld: /usr/local/lib/libfftw3.a(direct-r2r.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(direct2.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/local/lib/libfftw3.a(hc2hc-direct.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [AmberTools/src/cew/libcew.so] Error 1
make[1]: *** [AmberTools/src/cew/CMakeFiles/libcew.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Irek

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue May 30 2023 - 06:30:03 PDT
Custom Search