[petsc-users] PETSc unable to find cuda

Matthew Knepley knepley at gmail.com
Wed Jul 23 10:54:23 CDT 2025


On Wed, Jul 23, 2025 at 11:49 AM Blondel, Sophie via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi,
>
> I am trying to install PETSc (3.22.2) with Kokkos and cuda support on an
> Ubuntu laptop with dependencies loaded with Conda.
>

You are likely to have to turn off Conda before configuring. It messes up
paths for Python and other things.

  Thanks,

     Matt


> The configure line is: ./configure
> PETSC_DIR=/home/sophie/Workspace/xolotl-develop-source/external/petsc
> PETSC_ARCH=rel-cuda
> --prefix=/home/sophie/Workspace/xolotl-develop-cuda/external/petsc_install
> --with-fc=0 --with-cuda=1 --with-mpi --with-openmp=0 --with-debugging=0
> --with-shared-libraries --with-64-bit-indices --download-kokkos
> --download-kokkos-kernels --download-hdf5
> --download-hdf5-configure-arguments=--enable-parallel --COPTFLAGS=-O3
> --CXXOPTFLAGS=-O3 --with-cuda-arch=86 --CUDAOPTFLAGS=-O3
>
> And the configure.log is attached. Let me know if I can provide additional
> information.
>
> Best,
>
> Sophie
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!agMVStAAIH9wbZe0e-cFdZ4WjTbwZrweNZu7-go8ZAWNhd-pdXsjVKaHKw732n2ipdeGu6Ifzps6ZL8zlPZi$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!agMVStAAIH9wbZe0e-cFdZ4WjTbwZrweNZu7-go8ZAWNhd-pdXsjVKaHKw732n2ipdeGu6Ifzps6ZK7cVWbY$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250723/c89101dd/attachment.html>


More information about the petsc-users mailing list