forked from manmeet3591/python_class
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_generate_cs.sh
More file actions
18 lines (16 loc) · 942 Bytes
/
run_generate_cs.sh
File metadata and controls
18 lines (16 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Running parallel jobs on Pratyush HPC
#!/bin/bash
for file in 2m_temperature_2018_1.40625deg_12_31.nc
do
tmpfile=$(mktemp --suffix=".sh")
echo "#!/bin/sh" > $tmpfile
echo "#PBS -N test_job" >> $tmpfile
echo "#PBS -q research" >> $tmpfile
echo "#PBS -l select=1:ncpus=1:vntype=cray_compute" >> $tmpfile
echo "#PBS -l walltime=500:00:00" >> $tmpfile
echo "cd /lus/dal/cccr_rnd/manmeet/AI_IITM/WeatherBench/data/dataserv.ub.tum.de/1.40625deg/2m_temperature" >> $tmpfile
# echo "cd $PBS_O_WORKDIR" >> $tmpfile
# echo "module load cudatoolkit"
echo "aprun -n 1 -N 1 /lus/dal/cccr_rnd/manmeet/anaconda3/envs/py36/bin/python /lus/dal/cccr_rnd/manmeet/AI_IITM/WeatherBench/data/dataserv.ub.tum.de/1.40625deg/2m_temperature/preprocess_and_to_cs512.py $file > /lus/dal/cccr_rnd/manmeet/AI_IITM/WeatherBench/data/dataserv.ub.tum.de/1.40625deg/2m_temperature/output.log" >> $tmpfile
qsub $tmpfile
done