-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-StarCCM-1204R8.sh
48 lines (38 loc) · 2.5 KB
/
install-StarCCM-1204R8.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -x
SHARE_HOME=$1
LICIP=$2
HOST=`hostname`
DOWN=$3
USER=$4
SHARE_DATA=/mnt/resource/scratch
echo $SHARE_HOME,$LICIP,$HOST,$DOWN,$SHARE_DATA,$USER
# install library
yum install -y libXext.x86_64 libSM.x86_64 libXt
# create directory
mkdir -p $SHARE_DATA/INSTALLERS/starccm+_12.04.010/
wget -q https://hirostpublicshare.blob.core.windows.net/solvers/STAR-CCM%2B12.04.010_01_linux-x86_64-r8.tar.gz -O $SHARE_DATA/INSTALLERS/STAR-CCM+12.04.010_01_linux-x86_64-r8.tar.gz
#wget -q http://azbenchmarkstorage.blob.core.windows.net/cdadapcobenchmarkstorage/runAndRecord.java -O $SHARE_DATA/benchmark/runAndRecord.java
#wget -q https://storagekhi.blob.core.windows.net/khi2018storage/$DOWN -O $SHARE_DATA/benchmark/$DOWN
#tar -xf $SHARE_DATA/benchmark/$DOWN -C $SHARE_DATA/benchmark
tar -zxvf $SHARE_DATA/INSTALLERS/STAR-CCM+12.04.010_01_linux-x86_64-r8.tar.gz -C $SHARE_DATA/INSTALLERS/
cd $SHARE_DATA/INSTALLERS/starccm+_12.04.010/
echo "export PODKey=$LICIP" >> /home/$USER/.bashrc
echo "export [email protected]" >> /home/$USER/.bashrc
#export HOSTS=$SHARE_HOME/bin/hosts
echo "export I_MPI_FABRICS=shm:dapl" >> /home/$USER/.bashrc
echo "export I_MPI_DAPL_PROVIDER=ofa-v2-ib0" >> /home/$USER/.bashrc
echo "export I_MPI_ROOT=/opt/intel/compilers_and_libraries_2016.2.223/linux/mpi" >> /home/$USER/.bashrc
echo "export PATH=$SHARE_DATA/applications/12.04.010-R8/STAR-CCM+12.04.010-R8/star/bin:/opt/intel/impi/5.1.3.223/bin64:$PATH" >> /home/$USER/.bashrc
echo "export I_MPI_DYNAMIC_CONNECTION=0" >> /home/$USER/.bashrc
echo "${SHARE_DATA}/applications/12.04.010-R8/STAR-CCM+12.04.010-R8/star/bin/starccm+ -np 28 -machinefile ${SHARE_HOME}/hosts -licpath [email protected] -power -podkey $PODKey -batch -rsh ssh -mpi intel -cpubind bandwidth,v -mppflags '-ppn 14 -genv I_MPI_FABRICS shm:dapl -genv I_MPI_DAPL_PROVIDER ofa-v2-ib0 -genv I_MPI_DYNAMIC_CONNECTION 0' ${SHARE_DATA}/benchmark/*.sim" >> $SHARE_DATA/benchmark/runccm_example.sh
#setting privilege
chmod +x $SHARE_DATA/benchmark/runccm_example.sh
chown $USER:$USER $SHARE_DATA/benchmark/runccm_example.sh
chown $USER:$USER $SHARE_DATA/benchmark/*.sim
chown $USER:$USER $SHARE_DATA/benchmark/*.tgz
cd $SHARE_DATA/INSTALLERS/starccm+_12.04.010/
sh $SHARE_DATA/INSTALLERS/starccm+_12.04.010/STAR-CCM+12.04.010_01_linux-x86_64-2.5_gnu4.8-r8.bin -i silent -DINSTALLDIR=$SHARE_DATA/applications -DNODOC=true -DINSTALLFLEX=false
rm -rf $SHARE_DATA/benchmark/None
#rm -rf $SHARE_DATA/INSTALLERS/STAR-CCM+12.02.010_01_linux-x86_64.tar.gz
#rm $SHARE_DATA/*.tgz