[petsc-users] `petsc4py` GPU support

Satish Balay balay at mcs.anl.gov
Thu Aug 18 15:31:17 CDT 2022


You could look at PETSc install instructions and examples https://petsc.org/release/install/install/#common-example-usages

Assuming a linux box with  cuda at /usr/local/cuda, mpicc etc in PATH, and have system blas/lapack installed, the following build process should work

./configure --with-cuda=1 --with-petsc4py && make && make check

Satish

On Thu, 18 Aug 2022, Rohan Yadav wrote:

> Hi,
> 
> I'm trying to use `petsc4py` on a machine with CUDA GPUs. Is there a way to
> download a version of `petsc4py` from pip or conda with GPU support? If
> not, how do I go about installing `petsc4py` with GPU support from source?
> I can't find much documentation around doing this.
> 
> Thanks,
> 
> Rohan
> 



More information about the petsc-users mailing list