<div dir="ltr">I see. To confirm:<div>1) There are no installations of `petsc4py` with GPU support available through a package manager</div><div>2) Building and configuring PETSc with GPU support will also build a version of `petsc4py`.</div><div><br></div><div>Thanks,</div><div>Rohan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 18, 2022 at 4:31 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You could look at PETSc install instructions and examples <a href="https://petsc.org/release/install/install/#common-example-usages" rel="noreferrer" target="_blank">https://petsc.org/release/install/install/#common-example-usages</a><br>
<br>
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<br>
<br>
./configure --with-cuda=1 --with-petsc4py && make && make check<br>
<br>
Satish<br>
<br>
On Thu, 18 Aug 2022, Rohan Yadav wrote:<br>
<br>
> Hi,<br>
> <br>
> I'm trying to use `petsc4py` on a machine with CUDA GPUs. Is there a way to<br>
> download a version of `petsc4py` from pip or conda with GPU support? If<br>
> not, how do I go about installing `petsc4py` with GPU support from source?<br>
> I can't find much documentation around doing this.<br>
> <br>
> Thanks,<br>
> <br>
> Rohan<br>
> <br>
<br>
</blockquote></div>