2024-06-26 09:43:26 +00:00
|
|
|
#!/bin/bash
|
2024-09-11 06:45:42 +00:00
|
|
|
memory=14
|
2024-06-26 09:43:26 +00:00
|
|
|
on_login=${1}
|
2024-07-30 16:02:48 +00:00
|
|
|
queue=${2}
|
2024-06-26 09:43:26 +00:00
|
|
|
ndevice=1
|
2024-03-08 10:44:19 +00:00
|
|
|
file="flow_validation.py"
|
2024-06-26 09:43:26 +00:00
|
|
|
ksmooth=0
|
2024-03-08 10:44:19 +00:00
|
|
|
|
|
|
|
|
2024-07-30 16:02:48 +00:00
|
|
|
if [ "$on_login" != "1" ] && [ "$on_login" != "0" ]
|
|
|
|
then
|
|
|
|
echo "'on_login' (1) must be either 0 or 1."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$queue" != "redwood" ] && [ "$queue" != "berg" ] && [ "$queue" != "cmb" ] && [ "$queue" != "gpulong" ] && [ "$queue" != "cmbgpu" ]; then
|
|
|
|
echo "Invalid queue: $queue (2). Please provide one of 'redwood', 'berg', 'cmb', 'gpulong', 'cmbgpu'."
|
2024-06-26 09:43:26 +00:00
|
|
|
exit 1
|
2024-03-08 10:44:19 +00:00
|
|
|
fi
|
2024-06-26 09:43:26 +00:00
|
|
|
|
2024-06-28 12:23:32 +00:00
|
|
|
|
2024-07-30 16:02:48 +00:00
|
|
|
if [ "$queue" == "gpulong" ]
|
|
|
|
then
|
|
|
|
device="gpu"
|
|
|
|
gputype="rtx2080with12gb"
|
|
|
|
# gputype="rtx3070with8gb"
|
|
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_gpu_csiborgtools/bin/python"
|
|
|
|
elif [ "$queue" == "cmbgpu" ]
|
|
|
|
then
|
|
|
|
device="gpu"
|
|
|
|
gputype="rtx3090with24gb"
|
|
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_gpu_csiborgtools/bin/python"
|
|
|
|
else
|
|
|
|
device="cpu"
|
|
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_csiborg/bin/python"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2024-09-11 06:45:42 +00:00
|
|
|
for simname in "Carrick2015" "csiborg2_main"; do
|
|
|
|
# for simname in "csiborg2_main" "csiborg2X" ; do
|
|
|
|
# for simname in "Carrick2015" "Lilow2024" "csiborg2_main" "csiborg2X" "CF4"; do
|
|
|
|
# for simname in "Carrick2015" "csiborg2X" "csiborg2_main"; do
|
|
|
|
# for simname in "Carrick2015"; do
|
|
|
|
# for catalogue in "LOSS" "Foundation" "2MTF" "SFI_gals" "CF4_TFR_i" "CF4_TFR_w1"; do
|
|
|
|
for catalogue in "2MTF" "SFI_gals" "CF4_TFR_i"; do
|
|
|
|
# for catalogue in "2MTF" "SFI" "CF4_TFR_not2MTForSFI_i"; do
|
|
|
|
# for catalogue in "2MTF" "SFI_gals" "CF4_TFR_i"; do
|
|
|
|
# for catalogue in "CF4_TFR_w1"; do
|
|
|
|
# for catalogue in "CF4_GroupAll"; do
|
2024-07-12 14:46:45 +00:00
|
|
|
for ksim in "none"; do
|
2024-09-11 06:45:42 +00:00
|
|
|
for ksmooth in 1 2 3 4; do
|
2024-06-26 09:43:26 +00:00
|
|
|
pythoncm="$env $file --catalogue $catalogue --simname $simname --ksim $ksim --ksmooth $ksmooth --ndevice $ndevice --device $device"
|
|
|
|
|
2024-07-30 16:02:48 +00:00
|
|
|
if [ "$on_login" == "1" ]; then
|
2024-06-26 09:43:26 +00:00
|
|
|
echo $pythoncm
|
2024-07-30 16:02:48 +00:00
|
|
|
eval $pythoncm
|
2024-06-26 09:43:26 +00:00
|
|
|
else
|
2024-07-30 16:02:48 +00:00
|
|
|
if [ "$device" == "gpu" ]; then
|
|
|
|
cm="addqueue -q $queue -s -m $memory --gpus 1 --gputype $gputype $pythoncm"
|
|
|
|
else
|
|
|
|
cm="addqueue -s -q $queue -n 1 -m $memory $pythoncm"
|
|
|
|
fi
|
2024-06-26 09:43:26 +00:00
|
|
|
echo "Submitting:"
|
|
|
|
echo $cm
|
|
|
|
eval $cm
|
|
|
|
fi
|
2024-07-30 16:02:48 +00:00
|
|
|
|
2024-06-26 09:43:26 +00:00
|
|
|
echo
|
2024-06-28 12:32:55 +00:00
|
|
|
sleep 0.001
|
2024-07-30 16:02:48 +00:00
|
|
|
|
2024-06-26 09:43:26 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
2024-09-11 06:45:42 +00:00
|
|
|
|
|
|
|
done
|