start:working_on_mogon:gpu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

start:working_on_mogon:gpu [2020/04/16 11:54]
jrutte02 created
start:working_on_mogon:gpu [2020/08/13 14:24] (current)
henkela [Simple GPU-Job]
Line 69: Line 69:
 ''--gres-flags=enforce-binding'' is currently not working properly in our Slurm-Version. You may try to use it with Multi-task GPU job but it won't work with Jobs reserving only part of a node. Schedmd seems to work on a bug fix. ''--gres-flags=enforce-binding'' is currently not working properly in our Slurm-Version. You may try to use it with Multi-task GPU job but it won't work with Jobs reserving only part of a node. Schedmd seems to work on a bug fix.
 </callout> </callout>
-==== Simple GPU-Job ====+==== Simple single GPU-Job ==== 
 + 
 +Take a single GPU-node and run an executable on it ((Be sure that set the amount of memory appropriately)).  
 + 
 +<file myjobscript> 
 +#!/bin/bash 
 +#----------------------------------------------------------------- 
 +# Example SLURM job script to run serial applications on Mogon. 
 +
 +# This script requests one task using all cores (48) on one node.  
 +# The job will have access to all the memory and all 6 GPUs in the node.   
 +#----------------------------------------------------------------- 
 + 
 +#SBATCH -J mysimplegpujob        # Job name 
 +#SBATCH -o mysimplegpujob.%j.out # Specify stdout output file (%j expands to jobId) 
 +#SBATCH -p m2_gpu                # Partition name 
 +#SBATCH -n 1                     # Total number of tasks  
 +#SBATCH -c 2                     # CPUs per task  
 +#SBATCH -t 00:30:00              # Run time (hh:mm:ss) - 0.5 hours 
 +#SBATCH --gres=gpu:            # Reserve 1 GPUs  
 +#SBATCH -A m2_account            # Specify allocation to charge against 
 + 
 +# Load all necessary modules if needed (these are examples) 
 +# Loading modules in the script ensures a consistent environment. 
 +module load system/CUDA/9.1.85 
 + 
 +# Launch the executable 
 +srun <myexecutable> 
 +</file> 
 + 
 + 
 +==== Simple full node GPU-Job ====
  
 Take a full GPU-node and run an executable that uses all 6 GPUs ((Be sure that you application can utilize more than 1 GPU, when you request it!)).  Take a full GPU-node and run an executable that uses all 6 GPUs ((Be sure that you application can utilize more than 1 GPU, when you request it!)). 
  • start/working_on_mogon/gpu.txt
  • Last modified: 2020/08/13 14:24
  • by henkela