cc_staff
1,857
edits
mNo edit summary |
mNo edit summary |
||
Line 29: | Line 29: | ||
<!--T:5--> | <!--T:5--> | ||
When submitting jobs on a cluster for the first time, you must set up the environment to use your license. If you are using | When submitting jobs on a cluster for the first time, you must set up the environment to use your license. If you are using Siemans remote <i>pay-on-usage</i> license server then create a <code>~/.licenses/starccm.lic</code> file as shown in the <b>Configuring your account- POD license file</b> section above and license checkouts should immediately work. If however you are using an institutional license server, then after creating your <code>~/.licenses/starccm.lic</code> file you must also submit a problem ticket to [[technical support]] so we can help co-ordinate the necessary one time network firewall changes required to access it (assuming the server has never been setup to be accessed from the Alliance cluster you will be using). If you still have problems getting the licensing to work then try removing or renaming file <code>~/.flexlmrc</code> since previous search paths and/or license server settings maybe stored in it. Note that temporary output files from starccm jobs runs may accumulate in hidden directories named <code>~/.star-version_number</code> consuming valuable quota space. These can be removed by periodically running <code>rm -ri ~/.starccm*</code> and replying yes when prompted. | ||
<!--T:263--> | <!--T:263--> | ||
Line 57: | Line 57: | ||
<!--T:266--> | <!--T:266--> | ||
SIM_FILE='mysample.sim' # Specify your input sim filename | |||
#JAVA_FILE='mymacros.java' # Uncomment to specify an input java filename | |||
<!--T: | <!--T:265--> | ||
# Comment the next line when using an institutional license server | |||
LM_PROJECT='my22digitpodkey' # Specify your Siemens Power on Demand (PoD) Key | |||
# ------- no changes required below this line -------- | |||
<!--T: | <!--T:267--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | |||
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
<!--T:270--> | <!--T:270--> | ||
echo "CDLMD_LICENSE_FILE= $CDLMD_LICENSE_FILE" | |||
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE | if [ -n "$LM_PROJECT" ]; then | ||
echo "Siemens PoD license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE | |||
}}</tab> | else | ||
echo "Institutional license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE | |||
fi | |||
}} | |||
</tab> | |||
<tab name="Cedar" > | <tab name="Cedar" > | ||
{{File | {{File | ||
Line 100: | Line 105: | ||
<!--T:274--> | <!--T:274--> | ||
SIM_FILE='mysample.sim' # Specify your input sim filename | |||
#JAVA_FILE='mymacros.java' # Uncomment to specify an input java filename | |||
<!--T: | <!--T:275--> | ||
# Comment the next line when using an institutional license server | |||
LM_PROJECT='my22digitpodkey' # Specify your Siemens Power on Demand (PoD) Key | |||
# ------- no changes required below this line -------- | |||
<!--T: | <!--T:301--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | |||
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
<!--T:278--> | <!--T:278--> | ||
echo "CDLMD_LICENSE_FILE= $CDLMD_LICENSE_FILE" | |||
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE | if [ -n "$LM_PROJECT" ]; then | ||
echo "Siemens PoD license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi intel -fabric psm2 | |||
}}</tab> | else | ||
echo "Institutional license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi intel -fabric psm2 | |||
fi | |||
}} | |||
</tab> | |||
<tab name="Graham" > | <tab name="Graham" > | ||
{{File | {{File | ||
Line 143: | Line 153: | ||
<!--T:282--> | <!--T:282--> | ||
SIM_FILE='mysample.sim' # Specify your input sim filename | |||
#JAVA_FILE='mymacros.java' # Uncomment to specify an input java filename | |||
<!--T:283--> | |||
# Comment the next line when using an institutional license server | |||
LM_PROJECT='my22digitpodkey' # Specify your Siemens Power on Demand (PoD) Key | |||
# ------- no changes required below this line -------- | |||
<!--T:306--> | <!--T:306--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | ||
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
<!--T:287--> | <!--T:287--> | ||
echo "CDLMD_LICENSE_FILE= $CDLMD_LICENSE_FILE" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE | if [ -n "$LM_PROJECT" ]; then | ||
echo "Siemens PoD license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi intel -fabric psm2 | |||
}}</tab> | else | ||
echo "Institutional license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi intel -fabric psm2 | |||
fi | |||
}} | |||
</tab> | |||
<tab name="Narval" > | <tab name="Narval" > | ||
{{File | {{File | ||
Line 182: | Line 201: | ||
<!--T:291--> | <!--T:291--> | ||
SIM_FILE='mysample.sim' # Specify your input sim filename | |||
#JAVA_FILE='mymacros.java' # Uncomment to specify an input java filename | |||
<!--T:292--> | <!--T:292--> | ||
# Comment the next line when using an institutional license server | |||
LM_PROJECT='my22digitpodkey' # Specify your Siemens Power on Demand (PoD) Key | |||
# ------- no changes required below this line -------- | |||
<!--T: | <!--T:292--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | |||
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
<!--T:295--> | <!--T:295--> | ||
echo "CDLMD_LICENSE_FILE= $CDLMD_LICENSE_FILE" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE | if [ -n "$LM_PROJECT" ]; then | ||
echo "Siemens PoD license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi openmpi | |||
else | |||
echo "Institutional license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE -mpi openmpi | |||
fi | |||
}} | }} | ||
</tab> | </tab> | ||
Line 230: | Line 253: | ||
<!--T:317--> | <!--T:317--> | ||
SIM_FILE='mysample.sim' # Specify input sim filename | |||
#JAVA_FILE='mymacros.java' # Uncomment to specify an input java filename | |||
<!--T:321--> | |||
# Comment the next line when using an institutional license server | |||
LM_PROJECT='my22digitpodkey' # Specify your Siemens Power on Demand (PoD) Key | |||
# These settings are used instead of your ~/.licenses/starccm.lic | |||
# (settings shown will use the cd-adapco pod license server) | |||
FLEXPORT=1999 # Specify server static flex port | |||
VENDPORT=2099 # Specify server static vendor port | |||
LICSERVER=flex.cd-adapco.com # Specify license server hostname | |||
<!--T:319--> | |||
# ------- no changes required below this line -------- | |||
<!--T:318--> | <!--T:318--> | ||
ssh nia-gw -L | export CDLMD_LICENSE_FILE="$FLEXPORT@127.0.0.1" | ||
echo "CDLMD_LICENSE_FILE= $CDLMD_LICENSE_FILE" | |||
ssh nia-gw -L $FLEXPORT:$LICSERVER:$FLEXPORT -L $VENDPORT:$LICSERVER:$VENDPORT -N -f | |||
<!--T: | <!--T:320--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | |||
slurm_hl2hl.py --format STAR-CCM+ > $ | |||
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
Line 248: | Line 284: | ||
while [ $i -le 5 ] && [ $RET -ne 0 ]; do | while [ $i -le 5 ] && [ $RET -ne 0 ]; do | ||
[ $i -eq 1 ] {{!}}{{!}} sleep 5 | [ $i -eq 1 ] {{!}}{{!}} sleep 5 | ||
echo "Attempt number: "$I | |||
if [ -n "$LM_PROJECT" ]; then | |||
echo "Siemens PoD license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE | |||
else | |||
echo "Institutional license server:" | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -np $NCORE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $JAVA_FILE $SIM_FILE | |||
fi | |||
RET=$? | RET=$? | ||
i=$((i+1)) | i=$((i+1)) | ||
done | |||
exit $RET | exit $RET | ||
}} | }} |