Re: [petsc-users] `petsc4py` GPU support

2022-08-18 Thread Satish Balay via petsc-users
On Thu, 18 Aug 2022, Rohan Yadav wrote: > I see. To confirm: > 1) There are no installations of `petsc4py` with GPU support available > through a package manager You could try via pip - but its not any more simple. Here the model is - you install petsc via pip - and then petsc4py. Here you would

Re: [petsc-users] `petsc4py` GPU support

2022-08-18 Thread Rohan Yadav
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 wrote: > You could look at P

Re: [petsc-users] `petsc4py` GPU support

2022-08-18 Thread Satish Balay via petsc-users
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-cud

[petsc-users] `petsc4py` GPU support

2022-08-18 Thread Rohan Yadav
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