| #SBATCH --job-name=activation-multiple-all | |
| #SBATCH --gres=gpu:1 | |
| #SBATCH --cpus-per-task=2 | |
| #SBATCH --partition=physical-gpu | |
| #SBATCH --mem=4G | |
| #SBATCH --output=logs/%j-activation-multiple-all.out | |
| ENV_DIR="envs/activations/multiple" | |
| SCRIPT_PATH="./activation_v2_multiple.sh" | |
| if [ ! -d "$ENV_DIR" ]; then | |
| echo "Error: Environment folder $ENV_DIR does not exist" | |
| exit 1 | |
| fi | |
| if [ ! -f "$SCRIPT_PATH" ]; then | |
| echo "Error: Script $SCRIPT_PATH not found" | |
| exit 1 | |
| fi | |
| export CUDA_VISIBLE_DEVICES=0 | |
| # Loop through each env file and call activation_v2.sh | |
| for ENV_FILE in "$ENV_DIR"/*.sh; do | |
| if [ -f "$ENV_FILE" ]; then | |
| echo "Running activation_v2.sh with env file: $ENV_FILE" | |
| bash "$SCRIPT_PATH" "$ENV_FILE" | |
| echo "Done with $ENV_FILE" | |
| fi | |
| done | |
| echo "All activation jobs for multiple env files complete!" | |