[Mplapack-devel] CUDA-related linkage error with mpack-0.8.0
Status: Pre-Alpha
Brought to you by:
nakatamaho
From: Sven H. <sv...@sv...> - 2015-01-30 21:47:49
|
Hi. I want to try mpack for solving some stiff ODEs, which have factors stretching over enough magnitudes to make using "double" quite problematic. Therefore I compiled mpack-0.8.0 and stuck at a linkage error in the benchmark/mblas directory: << snip /bin/bash ../../libtool --mode=link g++ -o Rgemm.dd_cuda_total -L/usr/lib/nvidia-cuda-toolkit/lib64 -L/usr/lib/nvidia-cuda-toolkit/lib64 -L../../mlapack/reference -lmlapack_dd_ref -L../../mblas/optimized/dd/cuda -lmblas_dd_cuda -L/usr/lib/nvidia-cuda-toolkit/lib64 -lcudart -L../../mblas/optimized/dd -lmblas_dd -L../../. -lqd -ldl -fopenmp Rgemm_dd_cuda_total-Rgemm_dd.o libtool: link: g++ -o .libs/Rgemm.dd_cuda_total -fopenmp Rgemm_dd_cuda_total-Rgemm_dd.o -L/usr/lib/nvidia-cuda-toolkit/lib64 -L../../mlapack/reference /home/sven/src/mpack-0.8.0/mlapack/reference/.libs/libmlapack_dd_ref.so -L../../mblas/optimized/dd/cuda /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so -lcudart -L../../mblas/optimized/dd /home/sven/src/mpack-0.8.0/mblas/optimized/dd/.libs/libmblas_dd.so -L../../. -lqd -ldl -fopenmp /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_NU_p(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_TL_p(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_NU_0(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_TU_p(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_TU_0(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_NL_0(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' /home/sven/src/mpack-0.8.0/mblas/optimized/dd/cuda/.libs/libmblas_dd_cuda.so: undefined reference to `Rsyrk_NL_p(dd_real*, dd_real*, long, long, long, long, dd_real, dd_real)' collect2: error: ld returned 1 exit status Makefile:1454: recipe for target 'Rgemm.dd_cuda_total' failed make: *** [Rgemm.dd_cuda_total] Error 1 config: all enabled - cuda, dd, qd, mpfr, gmp, __float128 or just cuda and dd all that numeric libs from system (Debian) or compiled from your package environment: Debian 8.0 aka testing/jessie x86_64 or amd64 gcc / g++ 4.9 cuda toolkit 6.0.1 I could test the cuda stuff on a Quadro 4000 or maybe C2070. I don't see a reason for the errors above. Please give me a hint, because I gave up after reading the source and trying out different configs. Maybe it's related to cuda toolkit version, but I'm not familiar with that stuff and its behaviour. Thanks, Sven |