[petsc-users] `petsc4py` GPU support

Rohan Yadav rohany at alumni.cmu.edu
Thu Aug 18 15:36:20 CDT 2022


I see. To confirm:
1) There are no installations of `petsc4py` with GPU support available
through a package manager
2) Building and configuring PETSc with GPU support will also build a
version of `petsc4py`.

Thanks,
Rohan

On Thu, Aug 18, 2022 at 4:31 PM Satish Balay <balay at mcs.anl.gov> wrote:

> 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220818/83d4ca97/attachment.html>


More information about the petsc-users mailing list