marekandreas / elpa

A scalable eigensolver for dense, symmetric (hermitian) matrices (fork of https://gitlab.mpcdf.mpg.de/elpa/elpa.git)
Other
27 stars 13 forks source link

configure can't link to cublas #26

Closed cruddybanana1102 closed 1 year ago

cruddybanana1102 commented 1 year ago

config.log Trying to build elpa-2021.05.002 for my personal machine(Ubuntu 22.04 LTS) with Intel CORE(R) i7-9750H and NVIDIA GeForce GTX 1650. CUDA has been installed in /usr/local/cuda and nvcc --version works perfectly. /usr/local/cuda/lib64/libcublas.so also exists. But configure error can't link to cublas in the file. Please see attached config.log Edit: attached screenshot

Screenshot from 2022-12-09 04-24-48

Thanks in advance

knikhil1995 commented 1 year ago

From the config.log provided, the config line you used seems to be

../configure FC=mpif90 CC=mpicc FCFLAGS=-O2 -fPIC -mcpu=native CFLAGS=-O2 -fPIC -mcpu=native --enable-openmp --enable-nvidia-gpu --with-cuda-path=usr/local/cuda --with-cuda-sdk-path=usr/local/cuda --prefix=/home/cruddybanana1102/Downloads/elpa_dir/build LDFLAGS=-L/home/cruddybanana1102/Downloads/scalapack-2.2.0/lib -lscalapack -L//home/cruddybanana1102/Downloads/lapack-3.11.0 -llapack -L//home/cruddybanana1102/Downloads/OpenBLAS/install_dir/lib -lopenblas --disable-sse --disable-sse-assembly --disable-avx --disable-avx2 --disable-avx512 --enable-c-tests=no

I believe the cuda path should be /usr/local/cuda as opposed to usr/local/cuda (note the missing /)

marekandreas commented 1 year ago

Dear @cruddybanana1102,

as @knikhil1995 pointed out, it seems that the path you specified to the cuda libraries, is not correct.