<div dir="ltr">Here's a script I use for building Hypre that worked a few days ago. It may help with PETSc.<div><br><a href="https://github.com/hypre-space/hypre/issues/401">https://github.com/hypre-space/hypre/issues/401</a><br></div><div><br></div><div>-Paul</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 13, 2021 at 12:02 PM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@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 dir="ltr">On Fri, Aug 13, 2021 at 1:49 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><div class="gmail_quote"><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">I was building on Spock a few weeks ago, but am getting these errors now. <div>I have a setup with this environment and get this error.<div><br></div><div>Any ideas?</div></div></div></blockquote><div><br></div><div>Here is the error:</div><div><br></div><div>Executing: cc  -o /tmp/petsc-6izfgpkr/config.setCompilers/conftest -L/opt/rocm-4.2.0/lib -lhsa-runtime64 -L${ROCM_PATH}/lib -lamdhip64 -lhsa-runtime64  /tmp/petsc-6izfgpkr/config.setCompilers/conftest.o <br>Possible ERROR while running linker: exit code 1<br>stderr:<br>ld.lld: error: unable to find library -lmpi_gtl_hsa<br>clang-12: error: linker command failed with exit code 1 (use -v to see invocation)<br>Linker output before filtering:<br><br>ld.lld: error: unable to find library -lmpi_gtl_hsa<br>clang-12: error: linker command failed with exit code 1 (use -v to see invocation)<br>:<br>Linker output after filtering:<br><br>ld.lld: error: unable to find library -lmpi_gtl_hsa<br>clang-12: error: linker command failed with exit code 1 (use -v to see invocation):<br>          Error testing C compiler: Cannot compile/link C with cc.<br>            Deleting "CC"<br></div><div><br></div><div>That -l look like it is put in directly by 'cc'. How does anything work on that machine?</div><div><br></div><div>   Matt</div><div> </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><div>Thanks,</div><div>Mark</div><div><div><br></div><div>    module load craype-accel-amd-gfx908<br>    module load rocm<br>    module load emacs<br>    module load zlib<br>    module load autoconf automake libtool<br><br>    ## These must be set before compiling so the executable picks up GTL<br>    export PE_MPICH_GTL_DIR_amd_gfx908="-L/opt/cray/pe/mpich/8.1.4/gtl/lib"<br>    export PE_MPICH_GTL_LIBS_amd_gfx908="-lmpi_gtl_hsa"<br><br>    ## These must be set before running<br>    export MPIR_CVAR_GPU_EAGER_DEVICE_MEM=0<br>    export MPICH_GPU_SUPPORT_ENABLED=1<br>    export MPICH_SMP_SINGLE_COPY_MODE=CMA<br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>