[petsc-users] PETSc unable to find cuda
Junchao Zhang
junchao.zhang at gmail.com
Fri Jul 25 12:27:50 CDT 2025
Yes.
--Junchao Zhang
On Fri, Jul 25, 2025 at 9:34 AM Blondel, Sophie via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hi everyone,
>
> I'm now testing PETSc v3.23.4 with my code, with the serial backend this
> time, and I'm getting a segfault in DMCreateMatrix. "-log_view" is not
> providing any information. Should I create a new email thread for this
> issue?
>
> Best,
>
> Sophie
> ------------------------------
> *From:* Blondel, Sophie <sblondel at utk.edu>
> *Sent:* Wednesday, July 23, 2025 15:36
> *To:* Matthew Knepley <knepley at gmail.com>; petsc-users <
> petsc-users at mcs.anl.gov>; balay.anl at fastmail.org <balay.anl at fastmail.org>
> *Subject:* Re: [petsc-users] PETSc unable to find cuda
>
> Thank you both for your reply,
>
> Changing the gcc version fixed this issue. I will try with PETSc latest
> release now.
>
> Best,
>
> Sophie
> ------------------------------
> *From:* Satish Balay <balay.anl at fastmail.org>
> *Sent:* Wednesday, July 23, 2025 12:09
> *To:* Matthew Knepley <knepley at gmail.com>
> *Cc:* Blondel, Sophie <sblondel at utk.edu>; PETSc users list <
> petsc-users at mcs.anl.gov>
> *Subject:* Re: [petsc-users] PETSc unable to find cuda
>
> [You don't often get email from balay.anl at fastmail.org. Learn why this is
> important at https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!bxyzod8dN-P0zLdIr1eeuNiSOmM35RtT9GWtJwafue2TQFgaNorEbFAE6CDQO0E90Z3pREv6cFV5gY0E-hiDAPwd9JXy$
> <https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!YdOBIx1u7kj6Vj5P1B9HYULC4E4LJvOYoi4GpL_FrXb_T-z-iA7GKZPkniVsoDXuoimsHRrFEKSkL1uMYlntdEKo$>
> ]
>
> >>>
> Executing: mpicc --version
> stdout:
> x86_64-conda-linux-gnu-cc (conda-forge gcc 13.3.0-2) 13.3.0
>
> Executing: mpicc -o /tmp/petsc-q3as9pdp/config.libraries/conftest
> -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch
> -fstack-protector -fvisibility=hidden -Wall -Wwrite-strings
> -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector
> -fvisibility=hidden -O3 /tmp/petsc-q3as9pdp/config.libraries/conftest.o
> -Wl,-rpath,/usr/local/cuda-11.8/lib64 -L/usr/local/cuda-11.8/lib64 -lcudart
> -lnvToolsExt -lcufft -lcublas -lcusparse -lcusolver -lcurand
> -L/usr/local/cuda-11.8/lib64/stubs -lcuda -lquadmath
> stdout:
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> warning: libstdc++.so.6, needed by
> /usr/local/cuda-11.8/lib64/libnvToolsExt.so, not found (try using -rpath or
> -rpath-link)
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> /home/sophie/miniforge/envs/release/lib/./././libicuuc.so.73: undefined
> reference to `std::condition_variable::notify_all()@GLIBCXX_3.4.11'
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> /home/sophie/miniforge/envs/release/lib/./././libicui18n.so.73: undefined
> reference to `__cxa_guard_acquire at CXXABI_1.3'
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> /home/sophie/miniforge/envs/release/lib/./././libicui18n.so.73: undefined
> reference to `operator delete(void*)@GLIBCXX_3.4'
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> /home/sophie/miniforge/envs/release/lib/./././libicuuc.so.73: undefined
> reference to `std::__once_call at GLIBCXX_3.4.11'
> /home/sophie/miniforge/envs/release/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld:
> /home/sophie/miniforge/envs/release/lib/./././libicui18n.so.73: undefined
> reference to `vtable for __cxxabiv1::__si_class_type_info at CXXABI_1.3'
> <<<<
>
> Likely you need gcc/g++-11 for this version of cuda. [or install/use a
> newer version of cuda]. And best if you can use latest petsc release.
>
> Satish
>
> On Wed, 23 Jul 2025, Matthew Knepley wrote:
>
> > 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
> > >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250725/0136de3a/attachment.html>
More information about the petsc-users
mailing list