-
Notifications
You must be signed in to change notification settings - Fork 6
/
run-theta.sh
executable file
·29 lines (23 loc) · 1.08 KB
/
run-theta.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
#!/bin/bash
#COBALT -t 03:00:00
#COBALT -n 128
#COBALT -q default
#COBALT -A datascience
db_nodes=1 # the number of database nodes to use
db_port=6379 # the port to use for database communication
gen_nodes=2 # the number of compute nodes to use for each OpenFOAM data generation case
gen_ppn=64 # the number of processors per node for each OpenFOAM data generationc case
sim_nodes=2 # the number of compute nodes to use for the OpenFOAM inference case
sim_ppn=64 # the number of processors per node for each OpenFOAM inference case
module unload atp
module load miniconda-3/2021-07-28
conda activate /path/to/miniconda3/envs/smartsim-openfoam/
export SMARTSIM_LOG_LEVEL=developer
export OF_PATH=/path/to/OpenFOAM-5.x
export SMARTREDIS_LIB_PATH=/path/to/SmartRedis/install/lib
cd $OF_PATH
source etc/bashrc
cd -
export LD_LIBRARY_PATH=$SMARTREDIS_LIB_PATH:$FOAM_USER_LIBBIN:$FOAM_LIBBIN:$LD_LIBRARY_PATH
python driver.py --db_nodes=$db_nodes --db_port=$db_port --gen_nodes=$gen_nodes \
--gen_ppn=$gen_ppn --sim_nodes=$sim_nodes --sim_ppn=$sim_ppn