[petsc-users] Using PETSc in Cray systems

Najib Alia alia at wias-berlin.de
Thu Feb 21 09:46:53 CST 2019


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.

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



More information about the petsc-users mailing list