#!/bin/bash
#SBATCH --job-name=myjob              # Job name
#SBATCH --nodes=1                     # Number of nodes
#SBATCH --ntasks=1                    # Number of tasks
#SBATCH --cpus-per-task=1             # Number of CPU cores per task
#SBATCH --gres=gpu:1                  # Request 1 GPU per task
#SBATCH --output=output.log           # Output file
#SBATCH --error=error.log             # Error log file

# Explicitly set Lmod path
export PATH=/usr/local/lmod:$PATH

# Load the CUDA module and run the CUDA application
module load cuda
cd /scratch/CUDA
./test-cuda
