<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
module load mkl
<div class=""><br class="">
</div>
<div class="">use petsc options: </div>
<div class=""><br class="">
</div>
<div class="">--with-blas-lapack-dir=${MKLROOT}</div>
<div class=""><br class="">
</div>
<div class="">--with-cc=${MPICH_HOME}/mpicc --with-cxx=${MPICH_HOME}/mpicxx --with-fc=${MPICH_HOME}/mpif90<br class="">
<div><br class="">
</div>
<div>Sorry about the extraneous crap. I was cutting/pasting from my own much longer script.</div>
<div><br class="">
</div>
<div>V.<br class="">
<blockquote type="cite" class="">
<div class="">On Mar 27, 2019, at 8:47 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">So is this the instructions that I should give him? This grad student is a quick study but he has not computing background. So we don't care what we use, we just want to work (easily).
<div class=""><br class="">
</div>
<div class="">Thanks</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">Do not use "--download-fblaslapack=1". Set it to 0. Same for "--download-mpich=1".</div>
<div class=""><br class="">
</div>
<div class="">Now do:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="">> module load mkl</div>
<div class=""><br class="">
</div>
<div class="">> export BLAS_LAPACK_LOAD=--with-blas-lapack-dir=${MKLROOT}</div>
</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">> export PETSC_MPICH_HOME="${MPICH_HOME}"</div>
<div class=""><br class="">
</div>
</div>
</div>
<div class="">And use </div>
<div class=""><br class="">
</div>
<div class="">--with-cc=${MPICH_HOME}/mpicc --with-cxx=${MPICH_HOME}/mpicxx --with-fc=${MPICH_HOME}/mpif90</div>
<div class=""><br class="">
</div>
<div class="">instead of clang++</div>
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Mar 27, 2019 at 9:30 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" class="">
<div dir="ltr" class="">On Wed, Mar 27, 2019 at 8:55 AM Victor Eijkhout via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank" class="">petsc-dev@mcs.anl.gov</a>> wrote:<br class="">
</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">
<div style="overflow-wrap: break-word;" class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Mar 27, 2019, at 7:29 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:</div>
<br class="gmail-m_-7017015211972663507gmail-m_-2005668685365883435Apple-interchange-newline">
<div class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline" class="">How
should he configure to this? remove "--download-fblaslapack=1" and add ....</span></div>
</blockquote>
</div>
<br class="">
<div class="">1. If using gcc</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">module load mkl</div>
<div class=""><br class="">
</div>
<div class="">with either compiler:</div>
<div class=""><br class="">
</div>
<div class="">export BLAS_LAPACK_LOAD=--with-blas-lapack-dir=${MKLROOT}</div>
</div>
<div class=""><br class="">
</div>
<div class="">2. We define MPICH_HOME for you.</div>
<div class=""><br class="">
</div>
<div class="">With Intel MPI:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""> export PETSC_MPICH_HOME="${MPICH_HOME}/intel64"</div>
<div class=""> export mpi="--with-mpi-compilers=1 --with-mpi-include=${TACC_IMPI_INC} --with-mpi-lib=${TACC_IMPI_LIB}/release_mt/libmpi.so”</div>
<div class=""><br class="">
</div>
<div class="">with mvapich:</div>
<div class=""><br class="">
</div>
<div class=""> export PETSC_MPICH_HOME="${MPICH_HOME}"</div>
<div class=""> export mpi="--with-mpi-compilers=1 --with-mpi-dir=${PETSC_MPICH_HOME}”</div>
</div>
<div class=""><br class="">
</div>
<div class="">(looks like a little redundancy in my script)</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I think Satish now prefers</div>
<div class=""><br class="">
</div>
<div class=""> --with-cc=${MPICH_HOME}/mpicc --with-cxx=${MPICH_HOME}/mpicxx --with-fc=${MPICH_HOME}/mpif90</div>
<div class=""><br class="">
</div>
<div class=""> Thanks,</div>
<div class=""><br class="">
</div>
<div class=""> Matt</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class="">
<div class="">Victor.</div>
<div class=""><br class="">
</div>
</div>
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail-m_-7017015211972663507gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">
-- Norbert Wiener</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>