-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24f3dcb
commit 935fd93
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# salloc a node before you run this because petsc tests use srun | ||
|
||
# create packages directory | ||
mkdir packages | ||
cd packages | ||
|
||
# build and install lapack and blas | ||
wget https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.11.tar.gz | ||
tar -xf v3.11.tar.gz | ||
cd lapack-3.11 | ||
cp ../../install/scripts/make.inc ./ | ||
echo "PWD: `PWD`" | ||
make -j 8 | ||
|
||
cd .. | ||
# build and install petsc 3.19.6 in packages directory | ||
wget https://ftp.mcs.anl.gov/pub/petsc/petsc-3.19.tar.gz | ||
tar -xf petsc-3.19.tar.gz | ||
|
||
parentdir="$(dirname `pwd`)" | ||
echo "parentdir: $parentdir" | ||
|
||
cd petsc-3.19.6 | ||
./configure --with-cc=mpicc \ | ||
--with-cxx=mpicxx \ | ||
--with-fc=mpif90 \ | ||
--with-fortran-datatypes \ | ||
--with-debugging=0 \ | ||
--COPTFLAGS=-g -O3 -march=native -mtune=native \ | ||
--CXXOPTFLAGS=-g -O3 -march=native -mtune=native \ | ||
--FOPTFLAGS=-g -O3 -march=native -mtune=native \ | ||
--with-blas-lib=$parentdir/packages/lapack-3.11/librefblas.a \ | ||
--with-lapack-lib=$parentdir/packages/lapack-3.11/liblapack.a \ | ||
--with-mpiexec=srun \ | ||
--with-shared-libraries=0 \ | ||
--with-x11=0 --with-x=0 --with-windows-graphics=0 | ||
|
||
make PETSC_DIR=`pwd` PETSC_ARCH=arch-linux-c-opt all | ||
make PETSC_DIR=`pwd` PETSC_ARCH=arch-linux-c-opt check | ||
|
||
# build and install spherepack | ||
cd .. | ||
git clone https://github.com/comp-physics/spherepack3.2.git | ||
cd spherepack3.2 | ||
make -j 8 | ||
|
||
echo "Done installing RBC3D!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters