Submitting GPU-based job

Here is the example of quick job which requires 1 GPU processor:

#!/bin/bash
## CUDA slurm submission script

# 1 hour job:
#SBATCH --time=01:00:00

# 1 node
#SBATCH --nodes=1

## if you want whole node
#SBATCH --exclusive
##Select GPU type you want: (K80 or K20)
# asking for 1 GPU
#SBATCH --gres=gpu:K20:1

module load cuda/last

#launching executable, e.g.

./matrixMulCUBLAS

Save this file as e.g. cuda.slurm and submit with

sbatch cuda.slurm
css.php