##!/bin/bash -l #$ -l tmem=16G #$ -l h_rt=50:0:0 # Use this flag for a gpu job #$ -l gpu=true #$ -S /bin/bash #$ -j y #$ -N # Useful to redirect logs #$ -o /home//hpc-tutorial/jobs/logs # Defines array of jobs #$ -t 1:5 # Max number of jobs running at once #$ -tc 5 hostname date SOURCE_DIR='/home//hpc-tutorial' export PYTHONPATH=$PYTHONPATH:$SOURCE_DIR cd $SOURCE_DIR || exit source /share/apps/source_files/cuda/cuda-10.1.source conda activate hpc-example CONFIG_PATH='jobs/configs/lr-grid.csv' ROW=$SGE_TASK_ID LINE=$(sed -n $((ROW + 1))'{p;q}' "$CONFIG_PATH") ARGS=($(echo "$LINE")) LR=${ARGS[0]} python pl_examples/image_classifier_4_lightning_module.py -model.lr $LR date