[petsc-users] Combining SUPERLU_DIST with CUDA fails
Roland Richter
roland.richter at ntnu.no
Mon Dec 20 07:14:09 CST 2021
Hei,
I tried to combine CUDA with superlu_dist in petsc using the following
configure-line:
/./configure PETSC_ARCH=mpich-complex-linux-gcc-demo
--CC=/opt/intel/oneapi/mpi/2021.5.0/bin/mpicc
--CXX=/opt/intel/oneapi/mpi/2021.5.0/bin/mpicxx
--FC=/opt/intel/oneapi/mpi/2021.5.0/bin/mpifc --CFLAGS="-mavx2
-march=native -O3" --CXXFLAGS="-mavx2 -march=native -O3"
--FFLAGS="-mavx2 -march=native -O3"
--CUDAFLAGS=-allow-unsupported-compiler --CUDA-CXX=g++
--prefix=/opt/petsc --with-blaslapack=1 --with-mpi=1
--with-scalar-type=complex --download-suitesparse=1 --with-cuda
--with-debugging=0 --with-openmp --download-superlu_dist --force/
but the configure-step fails with several errors correlated with CUDA
and superlu_dist, the first one being
/cublas_utils.c:21:37: error: ‘CUDART_VERSION’ undeclared (first use in
this function); did you mean ‘CUDA_VERSION’?//
// 21 | printf("CUDA version: v %d\n",CUDART_VERSION);//
// | ^~~~~~~~~~~~~~//
// | CUDA_VERSION/
Compiling superlu_dist separately works, though (including CUDA).
Is there a bug somewhere in the configure-routine? I attached the full
configure-log.
Thanks!
Regards,
Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211220/d34cb294/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 1244079 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211220/d34cb294/attachment-0001.bin>
More information about the petsc-users
mailing list