<div dir="ltr"><div>Yes.</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jul 25, 2025 at 9:34 AM Blondel, Sophie via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@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"><div class="msg3722023157231061363">




<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi everyone,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Sophie</div>
<div id="m_3722023157231061363appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_3722023157231061363divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Blondel, Sophie <<a href="mailto:sblondel@utk.edu" target="_blank">sblondel@utk.edu</a>><br>
<b>Sent:</b> Wednesday, July 23, 2025 15:36<br>
<b>To:</b> Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>; petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>>; <a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a> <<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>><br>
<b>Subject:</b> Re: [petsc-users] PETSc unable to find cuda</font>
<div> </div>
</div>

<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thank you both for your reply,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Changing the gcc version fixed this issue. I will try with PETSc latest release now.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Sophie</div>
<div id="m_3722023157231061363x_appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_3722023157231061363x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Satish Balay <<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>><br>
<b>Sent:</b> Wednesday, July 23, 2025 12:09<br>
<b>To:</b> Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>><br>
<b>Cc:</b> Blondel, Sophie <<a href="mailto:sblondel@utk.edu" target="_blank">sblondel@utk.edu</a>>; PETSc users list <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>><br>
<b>Subject:</b> Re: [petsc-users] PETSc unable to find cuda</font>
<div> </div>
</div>
<div><font size="2"><span style="font-size:11pt">
<div>[You don't often get email from <a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>. Learn why this is important at
<a href="https://urldefense.us/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!G_uCfscf7eWS!YdOBIx1u7kj6Vj5P1B9HYULC4E4LJvOYoi4GpL_FrXb_T-z-iA7GKZPkniVsoDXuoimsHRrFEKSkL1uMYlntdEKo$" target="_blank">https://aka.ms/LearnAboutSenderIdentification</a> ]<br>
<br>
>>><br>
Executing: mpicc --version<br>
stdout:<br>
x86_64-conda-linux-gnu-cc (conda-forge gcc 13.3.0-2) 13.3.0<br>
<br>
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<br>
stdout:<br>
/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)<br>
/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'<br>
/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@CXXABI_1.3'<br>
/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'<br>
/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@GLIBCXX_3.4.11'<br>
/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@CXXABI_1.3'<br>
<<<<<br>
<br>
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.<br>
<br>
Satish<br>
<br>
On Wed, 23 Jul 2025, Matthew Knepley wrote:<br>
<br>
> On Wed, Jul 23, 2025 at 11:49 AM Blondel, Sophie via petsc-users <<br>
> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I am trying to install PETSc (3.22.2) with Kokkos and cuda support on an<br>
> > Ubuntu laptop with dependencies loaded with Conda.<br>
> ><br>
><br>
> You are likely to have to turn off Conda before configuring. It messes up<br>
> paths for Python and other things.<br>
><br>
>   Thanks,<br>
><br>
>      Matt<br>
><br>
><br>
> > The configure line is: ./configure<br>
> > PETSC_DIR=/home/sophie/Workspace/xolotl-develop-source/external/petsc<br>
> > PETSC_ARCH=rel-cuda<br>
> > --prefix=/home/sophie/Workspace/xolotl-develop-cuda/external/petsc_install<br>
> > --with-fc=0 --with-cuda=1 --with-mpi --with-openmp=0 --with-debugging=0<br>
> > --with-shared-libraries --with-64-bit-indices --download-kokkos<br>
> > --download-kokkos-kernels --download-hdf5<br>
> > --download-hdf5-configure-arguments=--enable-parallel --COPTFLAGS=-O3<br>
> > --CXXOPTFLAGS=-O3 --with-cuda-arch=86 --CUDAOPTFLAGS=-O3<br>
> ><br>
> > And the configure.log is attached. Let me know if I can provide additional<br>
> > information.<br>
> ><br>
> > Best,<br>
> ><br>
> > Sophie<br>
> ><br>
><br>
><br>
><br>
</div>
</span></font></div>
</div>
</div>

</div></blockquote></div>