You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qsub -I -l nodes=1:ppn=16,walltime=02:00:00 -q workq -A hpc_cdss01
#Download and unpackcd /project/cs16/tma5/OpenFOAM
git clone https://github.com/OpenFOAM/OpenFOAM-6.git
git clone https://github.com/OpenFOAM/ThirdParty-6.git
cd ThirdParty-6
mkdir download
wget -P download "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz"
tar -zxf download/metis-5.1.0.tar.gz
#load library
module unload mpich
module unload intel/18.0.0
module load INTEL/18.0.0
module load impi/2018.0.128
module load cmake/3.7.2/INTEL-18.0.0
export MPI_ROOT=/home/compilers/Intel/parallel_studio_xe_2018.0/impi/2018.0.128/intel64
#Check arch version, it should be x86_64 in SuperMike II
uname -m
#compile need to set directoryexport PROJECT=/project/cs16/tma5
#Set parallel compilingexport WM_NCOMPPROCS=16
Step2. Compiling parameters setup
cd$PROJECT/OpenFOAM6
1. vi etc/config.sh/mpi
case"$WM_MPLIB"in - INTELMPI
export MPI_ROOT=/home/compilers/Intel/parallel_studio_xe_2018.0/impi/2018.0.128/intel64
2. vi etc/config.sh/settings
a. case $WM_ARCH in Linux
case `uname -m` in > x86_64
case $WM_ARCH_OPTION in
i ) 32
ii) 64
>export WM_CC='icc'>export WM_CXX='icpc'>export WM_CFLAGS='-O2 -no-prec-div -m64 -fPIC'>export WM_CXXFLAGS='-O2 -no-prec-div -m64 -fPIC -std=c++0x'
3. vi etc/bashrc
>export FOAM_INST_DIR=$PROJECT/OpenFOAM
>export WM_COMPILER=Icc
>export WM_MPLIB=INTELMPI
#Setup building environmentsource /home/compilers/Intel/parallel_studio_xe_2018.0/compilers_and_libraries/linux/bin/compilervars.sh intel64
source /home/compilers/Intel/parallel_studio_xe_2018.0/impi/2018.0.128/bin64/mpivars.sh
source /project/cs16/tma5/OpenFOAM/OpenFOAM-6/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=system
#Then save an alias in the personal .bashrc file, simply by running the following command:echo"alias of6='source $PROJECT/OpenFOAM/OpenFOAM-6/etc/bashrc $FOAM_SETTINGS'">>$HOME/.bashrc
Step3. build scotch and metis with Intel compiling parameters
#For faster compile using 16 cores in SuperMike IIexport WM_NCOMPPROCS=16
#!!! unload the intelmpi for my hpc setting to use the self compiled mpi#Setup building environmentsource /home/compilers/Intel/parallel_studio_xe_2018.0/compilers_and_libraries/linux/bin/compilervars.sh intel64
source /home/compilers/Intel/parallel_studio_xe_2018.0/impi/2018.0.128/bin64/mpivars.sh
source /project/cs16/tma5/OpenFOAM/OpenFOAM-6/etc/bashrc WM_LABEL_SIZE=64 WM_COMPILER_TYPE=system
./Allwmake -j $WM_NCOMPPROCS> log.make 2>&1#------!!!Testing!!!--------
of6
icoFoam -help