<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Hao,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal">LIB_HYPRE = -L${HYPREHOME}/lib -lHYPRE<o:p></o:p></p>
<p class="MsoNormal">FFLAGS_HYPRE = -I${HYPREHOME}/include<o:p></o:p></p>
<p class="MsoNormal">CFLAGS_HYPRE = -I${HYPREHOME}/include<o:p></o:p></p>
<p class="MsoNormal">where ${HYPREHOME} is the environment variable pointing to where HYPRE is installed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The HYPRE installation guide and source code can be found on GitHub:
<a href="https://github.com/hypre-space/hypre">https://github.com/hypre-space/hypre</a>. Setting these environment variables before running configure script may be useful for building HYPRE on Cori:<o:p></o:p></p>
<p class="MsoNormal">export FC=ftn<o:p></o:p></p>
<p class="MsoNormal">export CC=cc<o:p></o:p></p>
<p class="MsoNormal">export CXX=CC<o:p></o:p></p>
<p class="MsoNormal">_COMPFLAGS="-O3"<o:p></o:p></p>
<p class="MsoNormal">export FFLAGS="${_COMPFLAGS}"<o:p></o:p></p>
<p class="MsoNormal">export F77FLAGS="${_COMPFLAGS}"<o:p></o:p></p>
<p class="MsoNormal">export LDFLAGS="${_OPENMP}"<o:p></o:p></p>
<p class="MsoNormal">export CXXFLAGS="${_COMPFLAGS}"<o:p></o:p></p>
<p class="MsoNormal">export CFLAGS="${_COMPFLAGS}"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Yingchao<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">flash-users <flash-users-bounces@flash.rochester.edu> on behalf of Yin, Hao <hyin8@me.rochester.edu><br>
<b>Date: </b>Thursday, March 3, 2022 at 3:40 PM<br>
<b>To: </b>flash-users@flash.rochester.edu <flash-users@flash.rochester.edu><br>
<b>Subject: </b>[FLASH-USERS] Compile Flash on NERSC Cori<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello all,<br>
<br>
Has anyone compiled Flash on NERSC Cori?<br>
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.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><img border="0" width="490" height="33" style="width:5.1041in;height:.3437in" id="_x0000_i1025" src="cid:60bdbd35-4eef-4daf-981b-ed7c6a8a1588@namprd07.prod.outlook.com"><o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
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!<br>
<br>
Best,<br>
Hao<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>