Closed chemrgineer closed 1 year ago
Looks to me as if the -fPIC
didn't get applied when dense_factor.o
and assemble.o
were built. You may want to inspect the log of make
from the Spral build (though I used similar flags).
I attached SPRAL build config.log. I don't have extensive knowledge. I have Geforge 1650Ti mobile architecture Turing = sm_75. I installed cuda with "sudo apt install nvidia-cuda-toolkit".
Maybe try NVCCFLAGS=-fPIC
when configure Spral. Just a guess. I never tried Spral with GPU. Maybe the Spral project would be a better place for this.
Unfortunately did not work. I will try my luck in SPRAL repo. Thanks for fast response.
make all-am
make[1]: Entering directory '/home/erturk/Downloads/spral/build_new'
gfortran -fopenmp -fPIC -c -o src/blas_iface.o ../src/blas_iface.f90
gfortran -fopenmp -fPIC -c -o src/core_analyse.o ../src/core_analyse.f90
depbase=`echo src/compat.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC -I../include -I../src -std=c++11 -fopenmp -I/usr/local/include -fPIC -MT src/compat.o -MD -MP -MF $depbase.Tpo -c -o src/compat.o ../src/compat.cxx &&\
mv -f $depbase.Tpo $depbase.Po
nvcc -fPIC -I../include -I../src -Xptxas="-v" -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_87,code=sm_87 -gencode arch=compute_86,code=compute_86 -rdc false -c -o src/cuda/api_wrappers.o ../src/cuda/api_wrappers.cu
nvcc fatal : Unknown option '-fPIC'
make[1]: *** [Makefile:3246: src/cuda/api_wrappers.o] Error 1
make[1]: Leaving directory '/home/erturk/Downloads/spral/build_new'
make: *** [Makefile:1660: all] Error 2
Hi everyone, I'm trying to compile IPOPT with SPRAL (compiled with GPU support). As a first step I compiled hwloc with CUDA support. Then I compiled spral with these commands:
After SPRAL compilation I download and try to compile IPOPT with these commands:
I get these errors:
I attached config.log file.