From 3eb5131586a338eb19c1054fb6000c35fa581b44 Mon Sep 17 00:00:00 2001 From: Tiago Almeida Date: Fri, 5 Jul 2024 15:27:04 +0100 Subject: [PATCH] Create lunch_cuda.sh --- examples/cuda/lunch_cuda.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 examples/cuda/lunch_cuda.sh diff --git a/examples/cuda/lunch_cuda.sh b/examples/cuda/lunch_cuda.sh new file mode 100644 index 0000000..01f0584 --- /dev/null +++ b/examples/cuda/lunch_cuda.sh @@ -0,0 +1,10 @@ +#!/bin/bash +#SBATCH --job-name=Cuda # create a short name for your job +#SBATCH --output="Cuda-%j.out" # %j will be replaced by the slurm jobID +#SBATCH --nodes=1 # node count +#SBATCH --ntasks=1 # total number of tasks across all nodes +#SBATCH --cpus-per-task=2 # cpu-cores per task (>1 if multi-threaded tasks) +#SBATCH --gres=gpu:1 # number of gpus per node + +# run the compiled binary +./vector_addition