[FLASH-USERS] Compile Flash on NERSC Cori

Lu, Yingchao yingchao.lu at rochester.edu
Thu Mar 3 15:57:44 EST 2022


Hi Hao,

The petsc module on Cori includes an HYPRE library. However, we have found that HYPRE in petsc has memory cleaning problems. So, I would suggest building and installing HYPRE on your own. After installation you need to include the following lines in Makefile.h:
LIB_HYPRE = -L${HYPREHOME}/lib -lHYPRE
FFLAGS_HYPRE = -I${HYPREHOME}/include
CFLAGS_HYPRE = -I${HYPREHOME}/include
where ${HYPREHOME} is the environment variable pointing to where HYPRE is installed.

The HYPRE installation guide and source code can be found on GitHub: https://github.com/hypre-space/hypre. Setting these environment variables before running configure script may be useful for building HYPRE on Cori:
export FC=ftn
export CC=cc
export CXX=CC
_COMPFLAGS="-O3"
export FFLAGS="${_COMPFLAGS}"
export F77FLAGS="${_COMPFLAGS}"
export LDFLAGS="${_OPENMP}"
export CXXFLAGS="${_COMPFLAGS}"
export CFLAGS="${_COMPFLAGS}"

Best,
Yingchao


From: flash-users <flash-users-bounces at flash.rochester.edu> on behalf of Yin, Hao <hyin8 at me.rochester.edu>
Date: Thursday, March 3, 2022 at 3:40 PM
To: flash-users at flash.rochester.edu <flash-users at flash.rochester.edu>
Subject: [FLASH-USERS] Compile Flash on NERSC Cori
Hello all,

Has anyone compiled Flash on NERSC Cori?
Flash4.6.2 only contains sites up to edition.nersc.gov, and Cori is not in the list. The Edison system uses Cray XC30 which is different from Cori (Cray XC40). It seems the link to HYPRE is missing in that makefile.h when I tried compiling on Cori. I got the following error.
[cid:60bdbd35-4eef-4daf-981b-ed7c6a8a1588 at namprd07.prod.outlook.com]


Is there a way that allows me to compile it on Cori by modifying the makefile.h? The makefile.h is attached. Thanks for help!

Best,
Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20220303/01788d27/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hypre_error.png
Type: image/png
Size: 13526 bytes
Desc: hypre_error.png
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20220303/01788d27/attachment-0001.png>


More information about the flash-users mailing list