[petsc-users] Combining SUPERLU_DIST with CUDA fails

Roland Richter roland.richter at ntnu.no
Mon Dec 20 09:50:47 CST 2021


In that case it fails with

/~/Downloads/git-files/petsc/mpich-complex-linux-gcc-demo/externalpackages/git.superlu_dist/SRC/cublas_utils.h:22:10:
fatal error: cublas_v2.h: No such file or directory/

even though this header is available. I assume some header paths are not
set correctly?

Thanks,

regards,

Roland

Am 20.12.21 um 16:29 schrieb Barry Smith:
>
>   Please try the branch balay/slu-without-omp-3  It is in
> MR https://gitlab.com/petsc/petsc/-/merge_requests/4635
>
>
>
>> On Dec 20, 2021, at 8:14 AM, Roland Richter <roland.richter at ntnu.no>
>> wrote:
>>
>> 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
>>
>> <configure.log>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211220/301b63ab/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 1309280 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211220/301b63ab/attachment-0001.bin>


More information about the petsc-users mailing list