[petsc-users] Using PETSc in Cray systems
Matthew Knepley
knepley at gmail.com
Thu Feb 21 11:44:05 CST 2019
On Thu, Feb 21, 2019 at 10:46 AM Najib Alia via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Dear all,
>
> we are trying to compile our Finite Element code on a Cray system and
> have a problem with PETSc and available packages: "unable to find
> scotch64", the variable PETSC_SINGLE_LIBRARY is set to NOTFOUND, and the
> compiler tests fail.
>
First, we should see if PETSc works correctly.
mkdir tmp
cd tmp
<create simple makefile>
ex5: ex5.o
${CLINKER} -o ex5 ex5.o ${PETSC_LIB}
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
<Get source from
https://bitbucket.org/petsc/petsc/src/master/src/snes/examples/tutorials/ex5.c
>
<Build and run>
make ex5
./ex5 -snes_monitor
If that runs, it looks like the errors are coming from your own build
system, which I don't think we
would understand.
Thanks,
Matt
What we have done:
>
> 1) We loaded the corresponding modules:
>
> module load cray-tpsl
>
> module load cray-petsc-64
>
> 2) and set the PETSC_DIR and ARCH variables as given in "module display
> cray-petsc-64":
>
> -------------------------------------------------------------------
> /opt/cray/modulefiles/cray-petsc-64/3.7.4.0:
>
> setenv PRGENV64 64
> conflict cray-petsc-complex
> conflict petsc-complex
> conflict cray-petsc
> conflict petsc
> conflict cray-hdf5
> setenv CRAY_PETSC_DIR /opt/cray/petsc/3.7.4.0/real
> setenv CRAY_PETSC_BASE_DIR /opt/cray/petsc/3.7.4.0/real
> setenv CRAY_PETSC_VERSION 3.7.4.0
> setenv CRAY_PETSC_PREFIX_DIR
> /opt/cray/petsc/3.7.4.0/real/CRAY64/8.3/sandybridge
> setenv PETSC_DIR
> /opt/cray/petsc/3.7.4.0/real/CRAY64/8.3/sandybridge
> setenv PETSC_ARCH
> prepend-path PE_PRODUCT_LIST CRAY_PETSC
> prepend-path CRAY_LD_LIBRARY_PATH
> /opt/cray/petsc/3.7.4.0/real/CRAY64/8.3/sandybridge/lib
> prepend-path MANPATH
> /opt/cray/petsc/3.7.4.0/real/man:/opt/cray/man/csmlversion
> setenv PE_PETSC_MODULE_NAME cray-petsc-64/3.7.4.0
> setenv PE_PETSC_VOLATILE_PRGENV CRAY CRAY64 GNU GNU64 INTEL
> INTEL64
> ...
> module-whatis PETSc - Portable, Extensible Toolkit for Scientific
> Computation
> -------------------------------------------------------------------
>
> 3) the library scotch is correctly installed (verified using "module
> display cray-tpsl").
>
> Our program uses the following file to find PETSc:
>
> https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake
>
> Do you have suggestions ?
>
> How can we check the current configuration of PETSc and set the
> variables correctly? Is it normal that PETSC_ARCH is empty?
>
> Since we do not have much experience with Cray systems, we would like to
> avoid configure PETSc by our own.
>
> Thanks ahead for your suggestions,
>
> N. Alia
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190221/74ffd0a1/attachment.html>
More information about the petsc-users
mailing list