Skip to content

WIP: Fix cuda compilation2

Alfredo Correa requested to merge fix_cuda_compilation2 into master

This MR replaces a previous one that was made over a non-updated master branch. still give this error:

 91%] Building CUDA object src/CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o
cd /home/correaa/prj/inq/build/cuda11/src && /usr/local/cuda/bin/nvcc  -DBOOST_ALL_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -DUSING_Libxc -I/home/correaa/prj/inq/external_libs/libxc/src -I/home/correaa/prj/inq/build/cuda11/external_libs/libxc -I/home/correaa/prj/inq/build/cuda11/external_libs/libxc/gen_funcidx -I/home/correaa/prj/inq/build/cuda11 -I/home/correaa/prj/inq/build/cuda11/external_libs/pseudopod -I/home/correaa/prj/inq/src/. -I/home/correaa/prj/inq/src/../external_libs  -DNDEBUG -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -pg -D_DISABLE_CUDA_SLOW -O3 --expt-relaxed-constexpr --expt-extended-lambda --Werror=cross-execution-space-call --compiler-options -Ofast,-g,-pg,-std=c++14,-Wall,-Wfatal-errors -g   -x cu -dc /home/correaa/prj/inq/src/main/unit_tests_main.cu -o CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o
[ 91%] Linking CUDA device code CMakeFiles/inq_unit_tests.dir/cmake_device_link.o
cd /home/correaa/prj/inq/build/cuda11/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/inq_unit_tests.dir/dlink.txt --verbose=1
/usr/local/cuda/bin/nvcc  -DNDEBUG -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -pg -D_DISABLE_CUDA_SLOW -O3 --expt-relaxed-constexpr --expt-extended-lambda --Werror=cross-execution-space-call --compiler-options -Ofast,-g,-pg,-std=c++14,-Wall,-Wfatal-errors -g -Xcompiler=-fPIC -Wno-deprecated-gpu-targets -shared -dlink CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o -o CMakeFiles/inq_unit_tests.dir/cmake_device_link.o   -lm ../external_libs/libxc/libxc.a -lmpi_cxx -lmpi 
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayISt7complexIdELl1ENS0_6memory4cuda7managed3ptrIKS4_PS9_EENS0_8layout_tILl1ElEEEESD_EC1ERKSF_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayIdLl1ENS0_6memory4cuda7managed3ptrIdPdEENS0_8layout_tILl1ElEEEESA_EC1ERKSC_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayIdLl1ENS0_6memory4cuda7managed3ptrIKdPS7_EENS0_8layout_tILl1ElEEEESB_EC1ERKSD_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayISt7complexIdELl3ENS0_6memory4cuda7managed3ptrIKS4_PS9_EENS0_8layout_tILl3ElEEEESD_EC1ERKSF_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
make[2]: *** [src/CMakeFiles/inq_unit_tests.dir/build.make:114: src/CMakeFiles/inq_unit_tests.dir/cmake_device_link.o] Error 255
make[2]: Leaving directory '/home/correaa/prj/inq/build/cuda11'
make[1]: *** [CMakeFiles/Makefile2:415: src/CMakeFiles/inq_unit_tests.dir/all] Error 2
make[1]: Leaving directory '/home/correaa/prj/inq/build/cuda11'
make: *** [Makefile:133: all] Error 2
``` 91%] Building CUDA object src/CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o
cd /home/correaa/prj/inq/build/cuda11/src && /usr/local/cuda/bin/nvcc  -DBOOST_ALL_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -DUSING_Libxc -I/home/correaa/prj/inq/external_libs/libxc/src -I/home/correaa/prj/inq/build/cuda11/external_libs/libxc -I/home/correaa/prj/inq/build/cuda11/external_libs/libxc/gen_funcidx -I/home/correaa/prj/inq/build/cuda11 -I/home/correaa/prj/inq/build/cuda11/external_libs/pseudopod -I/home/correaa/prj/inq/src/. -I/home/correaa/prj/inq/src/../external_libs  -DNDEBUG -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -pg -D_DISABLE_CUDA_SLOW -O3 --expt-relaxed-constexpr --expt-extended-lambda --Werror=cross-execution-space-call --compiler-options -Ofast,-g,-pg,-std=c++14,-Wall,-Wfatal-errors -g   -x cu -dc /home/correaa/prj/inq/src/main/unit_tests_main.cu -o CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o
[ 91%] Linking CUDA device code CMakeFiles/inq_unit_tests.dir/cmake_device_link.o
cd /home/correaa/prj/inq/build/cuda11/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/inq_unit_tests.dir/dlink.txt --verbose=1
/usr/local/cuda/bin/nvcc  -DNDEBUG -I/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -I/usr/lib/x86_64-linux-gnu/openmpi/include  -g -pg -D_DISABLE_CUDA_SLOW -O3 --expt-relaxed-constexpr --expt-extended-lambda --Werror=cross-execution-space-call --compiler-options -Ofast,-g,-pg,-std=c++14,-Wall,-Wfatal-errors -g -Xcompiler=-fPIC -Wno-deprecated-gpu-targets -shared -dlink CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o CMakeFiles/inq_unit_tests.dir/main/unit_tests_main.cu.o -o CMakeFiles/inq_unit_tests.dir/cmake_device_link.o   -lm ../external_libs/libxc/libxc.a -lmpi_cxx -lmpi 
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayISt7complexIdELl1ENS0_6memory4cuda7managed3ptrIKS4_PS9_EENS0_8layout_tILl1ElEEEESD_EC1ERKSF_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayIdLl1ENS0_6memory4cuda7managed3ptrIdPdEENS0_8layout_tILl1ElEEEESA_EC1ERKSC_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayIdLl1ENS0_6memory4cuda7managed3ptrIKdPS7_EENS0_8layout_tILl1ElEEEESB_EC1ERKSD_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
nvlink error   : Undefined reference to '_ZN5boost5multi15basic_array_ptrINS0_11basic_arrayISt7complexIdELl3ENS0_6memory4cuda7managed3ptrIKS4_PS9_EENS0_8layout_tILl3ElEEEESD_EC1ERKSF_' in 'CMakeFiles/inq_unit_tests.dir/main/unit_tests.cu.o'
make[2]: *** [src/CMakeFiles/inq_unit_tests.dir/build.make:114: src/CMakeFiles/inq_unit_tests.dir/cmake_device_link.o] Error 255
make[2]: Leaving directory '/home/correaa/prj/inq/build/cuda11'
make[1]: *** [CMakeFiles/Makefile2:415: src/CMakeFiles/inq_unit_tests.dir/all] Error 2
make[1]: Leaving directory '/home/correaa/prj/inq/build/cuda11'
make: *** [Makefile:133: all] Error 2

Merge request reports

Loading