[petsc-users] Configure error while building PETSc with CUDA/MVAPICH2-GDR

Sreeram R Venkat srvenkat at utexas.edu
Fri Dec 8 12:53:13 CST 2023


I am trying to build PETSc with CUDA using the CUDA-Aware MVAPICH2-GDR.

Here is my configure command:

./configure PETSC_ARCH=linux-c-debug-mvapich2-gdr --download-hypre
 --with-cuda=true --cuda-dir=$TACC_CUDA_DIR --with-hdf5=true
--with-hdf5-dir=$TACC_PHDF5_DIR --download-elemental --download-metis
--download-parmetis --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90

which errors with:

          UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
details):
---------------------------------------------------------------------------------------------
  CUDA compile failed with arch flags " -ccbin mpic++ -std=c++14 -Xcompiler
-fPIC
  -Xcompiler -fvisibility=hidden -g -lineinfo -gencode
arch=compute_80,code=sm_80"
  generated from "--with-cuda-arch=80"



The same configure command works when I use the Intel MPI and I can build
with CUDA. The full config.log file is attached. Please let me know if you
need any other information. I appreciate your help with this.

Thanks,
Sreeram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231208/9701bb33/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 2306445 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231208/9701bb33/attachment-0001.obj>


More information about the petsc-users mailing list