mirror of
https://github.com/Richard-Sti/csiborgtools.git
synced 2024-12-22 22:08:02 +00:00
ce55a2b47e
* Parallelize over simulations * Update docs * Update dependency * Update imports * Add adtitional dependencies * Update .gitignore * Update ERADME * Simplify numpyro GOF * Speed up GOF * Deepcopy samples * Update scripts * Add GPU acceleration * Select boxes * Update script * Optionally sample beta * Fix old code * Simplify code * Start saving log posterior * Start popping log_likeliood * Add imports * Add converting samples * Fix sctipt name * Add evidence with harmonic * Remove comment * Update imports * Update imports so that pylians not required * Stop requiring Pylians to be installed * Update submission scripts for loops * Update nb * Update nb * Add Manticore boxes * Add verbosity flag * Add bulk flow * Update script * Update nb * Update normalization * Update submit * Update nb
40 lines
1.1 KiB
Bash
Executable file
40 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
memory=8
|
|
on_login=${1}
|
|
ndevice=1
|
|
|
|
device="gpu"
|
|
queue="gpulong"
|
|
gputype="rtx2080with12gb"
|
|
env="/mnt/users/rstiskalek/csiborgtools/venv_gpu_csiborgtools/bin/python"
|
|
file="flow_validation.py"
|
|
ksmooth=0
|
|
|
|
|
|
if [ "$on_login" != "1" ] && [ "$on_login" != "0" ]; then
|
|
echo "Invalid input: 'on_login' (1). Please provide 1 or 0."
|
|
exit 1
|
|
fi
|
|
|
|
# Submit a job for each combination of simname, catalogue, ksim
|
|
for simname in "csiborg2_main"; do
|
|
for catalogue in "2MTF"; do
|
|
# for ksim in 0 1 2; do
|
|
for ksim in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 "none"; do
|
|
# for ksim in 0; do
|
|
pythoncm="$env $file --catalogue $catalogue --simname $simname --ksim $ksim --ksmooth $ksmooth --ndevice $ndevice --device $device"
|
|
|
|
if [ $on_login -eq 1 ]; then
|
|
echo $pythoncm
|
|
$pythoncm
|
|
else
|
|
cm="addqueue -q $queue -s -m $memory --gpus 1 --gputype $gputype $pythoncm"
|
|
echo "Submitting:"
|
|
echo $cm
|
|
eval $cm
|
|
fi
|
|
echo
|
|
sleep 0.05
|
|
done
|
|
done
|
|
done
|