Skip to content
GitHub

Job Submission

How do I submit a job to the P1 DTU Cluster?

Section titled “How do I submit a job to the P1 DTU Cluster?”

This cluster uses the IBM Platform LSF (Load Sharing Facility) as its workload management platform and job scheduler.

static.sh
#!/bin/bash
#BSUB -J my_job_name
#BSUB -q p1
#BSUB -o %J.out
#BSUB -e %J.err
#BSUB -n 8
#BSUB -gpu "num=2:mode=exclusive_process"
#BSUB -R "rusage[mem=4GB]"
#BSUB -R "span[hosts=1]"
#BSUB -W 01:00
# Load the cuda module
module load cuda/11.6
# Check the GPU status
nvidia-smi
# Run the deviceQuery program
/appl/cuda/11.6.0/samples/bin/x86_64/linux/release/deviceQuery
Terminal window
bsub < static.sh

How do I submit a job to the P1 NGC Cluster?

Section titled “How do I submit a job to the P1 NGC Cluster?”

This cluster uses the PBS (Portable Batch System) as its workload management platform and job scheduler.

static.job
#!/bin/bash
#PBS -A my_project_or_account_name
#PBS -N my_job_name
#PBS -l nodes=1:ppn=6:gpus=1
#PBS -l mem=5gb
#PBS -l walltime=3:00:00
#PBS -o %J.log
#PBS -j oe
cd $PBS_O_WORKDIR
# Load modules
module load cmake/3.22.2
module load miniconda3/4.12.0
# Activate Conda environment
conda activate MyEnv
# Call main entrypoint/script
python3 myscript.py
Terminal window
sbatch < static.job