<div dir="ltr"><div>Thanks for your response. </div><div>Here is my module loaded:</div><div><b>Currently Loaded Modules:<br> 1) craype-arm-grace 4) perftools-base/24.03.0 7) craype/2.7.31 10) cray-libsci/24.03.0 13) default<br> 2) libfabric/<a href="https://urldefense.us/v3/__http://1.15.2.0__;!!G_uCfscf7eWS!YxwuA3RZGrDbd-WJg-ikPS5FGHt0IuvRdt50Xlh8K2yBzh5tUaPQ1RLsI9EotlhCLGtht706RRdTqmet898TWw$">1.15.2.0</a> 5) xpmem/2.8.4-1.0_7.1__ga37cbd9.shasta 8) cray-dsmml/0.3.0 11) PrgEnv-gnu/8.5.0<br> 3) craype-network-ofi 6) gcc-native/13.2 9) cray-mpich/8.1.29 12) cudatoolkit/23.11_12.3</b><br></div><div>And here is the configuration option now:</div><div><b>--with-cc=cc --with-cxx=CC --with-fc=ftn --download-f2cblaslapack=1 --with-cuda=1 <br></b></div><div><br></div><div>That error is still there. <br></div><div><br></div><div>Best,</div><div>Qiyue Lu<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 20, 2024 at 11:58 AM Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com">junchao.zhang@gmail.com</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 dir="ltr">/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/../vecseqcupm_impl.hpp:1313:150: <b>internal compiler error</b>: in maybe_undo_parenthesized_ref, at cp/semantics.c:1740<div><br></div><div>Did you use nvidia compilers, e.g. nvc, nvc++? If yes, you may want to change to other compilers by loading other cray PrgEnvs<br></div><div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 20, 2024 at 11:42 AM Qiyue Lu <<a href="mailto:qiyuelu1@gmail.com" target="_blank">qiyuelu1@gmail.com</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 dir="ltr"><div>Hello, <br></div><div>I am trying to build the PETSc version 3.21.5 (the latest, cloned from git) version on a Grace Hopper node with this configuration options:</div><div><b>--with-cc=cc --with-cxx=CC --with-fc=ftn --download-f2cblaslapack=1 --with-cudac=nvcc --with-cuda=1 --with-threadsafety=1</b></div><div>with module cudatoolkit/23.11_12.3. <br></div><div><br></div><div>And I got this error:</div><div>===============</div><div>/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/../vecseqcupm_impl.hpp: In instantiation of ‘Petsc::vec::cupm::impl::VecSeq_CUPM<<anonymous> >::SetAsync(Vec, PetscScalar, PetscDeviceContext)::<lambda()> [with Petsc::device::cupm::DeviceType T = (Petsc::device::cupm::DeviceType)0]’:<br>/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/../vecseqcupm_impl.hpp:1313:157: required from ‘struct Petsc::vec::cupm::impl::VecSeq_CUPM<<anonymous> >::SetAsync(Vec, PetscScalar, PetscDeviceContext) [with Petsc::device::cupm::DeviceType T = (Petsc::device::cupm::DeviceType)0; PetscErrorCode = int; Vec = _p_Vec*; PetscScalar = double; PetscDeviceContext = _p_PetscDeviceContext*]::<lambda()>’<br>/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/../vecseqcupm_impl.hpp:1313:167: required from ‘static PetscErrorCode Petsc::vec::cupm::impl::VecSeq_CUPM<<anonymous> >::SetAsync(Vec, PetscScalar, PetscDeviceContext) [with Petsc::device::cupm::DeviceType T = (Petsc::device::cupm::DeviceType)0; PetscErrorCode = int; Vec = _p_Vec*; PetscScalar = double; PetscDeviceContext = _p_PetscDeviceContext*]’<br>/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/vecseqcupm.cu:7:40: required from here<br>/u/qiyuelu1/petsc/src/vec/vec/impls/seq/cupm/cuda/../vecseqcupm_impl.hpp:1313:150: internal compiler error: in maybe_undo_parenthesized_ref, at cp/semantics.c:1740<br> PetscCallThrust(THRUST_CALL(thrust::fill, stream, dptr, dptr + n, alpha));<br> </div><div>===============</div><div><br></div><div>Could you please show some hints on this issue? <br></div><div><br></div><div>Thanks,</div><div>Qiyue Lu<br></div></div>
</blockquote></div>
</blockquote></div>