#!/bin/bash #SBATCH --job-name Connect4 #SBATCH -N 1 # Number of nodes to use #SBATCH -n 1 # Number of tasks #SBATCH --cpus-per-task 8 # The number of processes for this code #SBATCH -t 0:10:00 # Job allocation time (maximum runtime) #SBATCH --no-requeue # What to do if this fails, in this case just drops #SBATCH -o Connect4.out # standard output #SBATCH -e Connect4.err # standard error module load python3.11 # Load python srun python ./Connect4_HPC.py # Run the Python script # Remove empty output/error files [ -s Connect4.out ] || rm Connect4.out [ -s Connect4.err ] || rm Connect4.err