<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Feb 21, 2019 at 10:46 AM Najib Alia via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.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">Dear all,<br>
<br>
we are trying to compile our Finite Element code on a Cray system and<br>
have a problem with PETSc and available packages: "unable to find<br>
scotch64", the variable PETSC_SINGLE_LIBRARY is set to NOTFOUND, and the<br>
compiler tests fail.<br></blockquote><div><br></div><div>First, we should see if PETSc works correctly.</div><div><br></div><div> mkdir tmp</div><div> cd tmp</div><div> <create simple makefile></div><div> ex5: ex5.o</div><div> ${CLINKER} -o ex5 ex5.o ${PETSC_LIB}</div><div><br></div><div><div> include ${PETSC_DIR}/lib/petsc/conf/variables</div><div> include ${PETSC_DIR}/lib/petsc/conf/rules</div></div><div> <Get source from <a href="https://bitbucket.org/petsc/petsc/src/master/src/snes/examples/tutorials/ex5.c">https://bitbucket.org/petsc/petsc/src/master/src/snes/examples/tutorials/ex5.c</a>></div><div> <Build and run></div><div> make ex5</div><div> ./ex5 -snes_monitor</div><div><br></div><div>If that runs, it looks like the errors are coming from your own build system, which I don't think we</div><div>would understand.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
What we have done:<br>
<br>
1) We loaded the corresponding modules:<br>
<br>
module load cray-tpsl<br>
<br>
module load cray-petsc-64<br>
<br>
2) and set the PETSC_DIR and ARCH variables as given in "module display<br>
cray-petsc-64":<br>
<br>
-------------------------------------------------------------------<br>
/opt/cray/modulefiles/cray-petsc-64/<a href="http://3.7.4.0" rel="noreferrer" target="_blank">3.7.4.0</a>:<br>
<br>
setenv PRGENV64 64<br>
conflict cray-petsc-complex<br>
conflict petsc-complex<br>
conflict cray-petsc<br>
conflict petsc<br>
conflict cray-hdf5<br>
setenv CRAY_PETSC_DIR /opt/cray/petsc/<a href="http://3.7.4.0/real" rel="noreferrer" target="_blank">3.7.4.0/real</a><br>
setenv CRAY_PETSC_BASE_DIR /opt/cray/petsc/<a href="http://3.7.4.0/real" rel="noreferrer" target="_blank">3.7.4.0/real</a><br>
setenv CRAY_PETSC_VERSION 3.7.4.0<br>
setenv CRAY_PETSC_PREFIX_DIR<br>
/opt/cray/petsc/<a href="http://3.7.4.0/real/CRAY64/8.3/sandybridge" rel="noreferrer" target="_blank">3.7.4.0/real/CRAY64/8.3/sandybridge</a><br>
setenv PETSC_DIR<br>
/opt/cray/petsc/<a href="http://3.7.4.0/real/CRAY64/8.3/sandybridge" rel="noreferrer" target="_blank">3.7.4.0/real/CRAY64/8.3/sandybridge</a><br>
setenv PETSC_ARCH<br>
prepend-path PE_PRODUCT_LIST CRAY_PETSC<br>
prepend-path CRAY_LD_LIBRARY_PATH<br>
/opt/cray/petsc/<a href="http://3.7.4.0/real/CRAY64/8.3/sandybridge/lib" rel="noreferrer" target="_blank">3.7.4.0/real/CRAY64/8.3/sandybridge/lib</a><br>
prepend-path MANPATH<br>
/opt/cray/petsc/<a href="http://3.7.4.0/real/man:/opt/cray/man/csmlversion" rel="noreferrer" target="_blank">3.7.4.0/real/man:/opt/cray/man/csmlversion</a><br>
setenv PE_PETSC_MODULE_NAME cray-petsc-64/<a href="http://3.7.4.0" rel="noreferrer" target="_blank">3.7.4.0</a><br>
setenv PE_PETSC_VOLATILE_PRGENV CRAY CRAY64 GNU GNU64 INTEL<br>
INTEL64<br>
...<br>
module-whatis PETSc - Portable, Extensible Toolkit for Scientific<br>
Computation<br>
-------------------------------------------------------------------<br>
<br>
3) the library scotch is correctly installed (verified using "module<br>
display cray-tpsl").<br>
<br>
Our program uses the following file to find PETSc:<br>
<br>
<a href="https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake" rel="noreferrer" target="_blank">https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake</a><br>
<br>
Do you have suggestions ?<br>
<br>
How can we check the current configuration of PETSc and set the<br>
variables correctly? Is it normal that PETSC_ARCH is empty?<br>
<br>
Since we do not have much experience with Cray systems, we would like to<br>
avoid configure PETSc by our own.<br>
<br>
Thanks ahead for your suggestions,<br>
<br>
N. Alia<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><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></div></div>