How to compile Petsc with Cuda in Windows?
Hello, today I would like to install Petsc that supports cuda in a Windows system.
My configure command is as follows:
./configure --prefix=/cygdrive/d/cudapetsc --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx-std-C++17='win32fe cl' --download-fblaslapack --with-shared-libraries=0 --with-cuda=1 --with-cudac='win32fe nvcc' --with-cuda-include='[/cygdrive/c/PROGRA~1/NVIDIA~2/CUDA/v12.2/include,/cygdrive/c/PROGRA~1/NVIDIA~2/CUDA/v12.2/include/nvtx3]' --with-cuda-lib='-L/cygdrive/c/PROGRA~1/NVIDIA~2/CUDA/v12.2/lib/x64 cublas.lib cublasLt.lib cuda.lib cudadevrt.lib cudart.lib cudart_static.lib cufft.lib cufftw.lib curand.lib cusolver.lib cusolverMg.lib cusparse.lib' --with-mpi-include='[/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/2021.12/include]' --with-mpi-lib='-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/2021.12/lib impi.lib' --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/2021.12/bin/mpiexec
I can run the first step. When I use the make PETSC dir=/cygdrive/d/petsc/petsc-3.21.0 PETSC ARCH=arch mswin c debug all command to proceed to the second step, an error occurs. How can I resolve this issue? I hope to receive your help. My petsc version is 3.21.0, CUDA version is 12.2, using cygwin. And it is possible to successfully install the non cuda version of Petsc. The configure.log and make. log have been attached below, and I hope to receive your help again.configure.log