2024-06-26 09:43:26 +00:00
|
|
|
#!/bin/bash
|
|
|
|
memory=8
|
|
|
|
on_login=${1}
|
|
|
|
ndevice=1
|
2024-03-16 17:02:00 +00:00
|
|
|
|
2024-06-26 09:43:26 +00:00
|
|
|
device="gpu"
|
|
|
|
queue="gpulong"
|
|
|
|
gputype="rtx2080with12gb"
|
|
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_gpu_csiborgtools/bin/python"
|
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-06-26 09:43:26 +00:00
|
|
|
if [ "$on_login" != "1" ] && [ "$on_login" != "0" ]; then
|
|
|
|
echo "Invalid input: 'on_login' (1). Please provide 1 or 0."
|
|
|
|
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-06-26 09:43:26 +00:00
|
|
|
# Submit a job for each combination of simname, catalogue, ksim
|
2024-07-12 14:46:45 +00:00
|
|
|
# for simname in "Lilow2024" "CF4" "CF4gp" "csiborg1" "csiborg2_main" "csiborg2X"; do
|
2024-07-25 10:48:37 +00:00
|
|
|
for simname in "Carrick2015"; do
|
2024-06-28 12:32:55 +00:00
|
|
|
# for simname in "csiborg1" "csiborg2_main" "csiborg2X"; do
|
2024-07-25 13:53:18 +00:00
|
|
|
for catalogue in "Foundation"; do
|
2024-07-03 08:53:00 +00:00
|
|
|
# for catalogue in "2MTF"; do
|
2024-06-26 09:43:26 +00:00
|
|
|
# for ksim in 0 1 2; do
|
2024-06-28 21:58:56 +00:00
|
|
|
# for ksim in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
|
2024-07-12 14:46:45 +00:00
|
|
|
for ksim in "none"; do
|
2024-06-26 09:43:26 +00:00
|
|
|
pythoncm="$env $file --catalogue $catalogue --simname $simname --ksim $ksim --ksmooth $ksmooth --ndevice $ndevice --device $device"
|
|
|
|
|
|
|
|
if [ $on_login -eq 1 ]; then
|
|
|
|
echo $pythoncm
|
2024-06-28 12:32:55 +00:00
|
|
|
$pythoncm
|
2024-06-26 09:43:26 +00:00
|
|
|
else
|
|
|
|
cm="addqueue -q $queue -s -m $memory --gpus 1 --gputype $gputype $pythoncm"
|
|
|
|
echo "Submitting:"
|
|
|
|
echo $cm
|
|
|
|
eval $cm
|
|
|
|
fi
|
|
|
|
echo
|
2024-06-28 12:32:55 +00:00
|
|
|
sleep 0.001
|
2024-06-26 09:43:26 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|