Skip to content

HPCC Job Submission Workflow

Goal: Understand basic workflow for submitting jobs to the clusters.

Task: Run hello.c on one core and one compute node.

  • Login to HPCC
  • Load the powertools module.
  • Create a copy the helloworld getexample in your current directory.
  • Change into the helloworld directory created.
  • View the submission script in the helloworld directory.
  • Compile the hello C program on the development node.
  • Submit the script to the SLURM scheduler.
  • Check the queue for your job.
  • Examine your job
  • Check the output of your job
  • View the output of your job

Answer  Expand source

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#Login to HPCC
ssh -XY msu_netid@hpcc.msu.edu
ssh dev-intel18

#Load powertools module
module load powertools

#Copy the helloworld getexample
getexample helloworld
ls -l

#Change into the helloworld directory
cd helloworld
ls -l

#View the submission script in the helloworld directory
cat hello.sb

#Compile the C program <hello> on the development node
gcc hello.c -o hello

#Submit the jobscript hello.sb to the SLURM scheduler
sbatch hello.sb

#Check the queue for your job
qstat –u $USER

#Examine your job
scontrol <job_id>

#View the output of your job
less <slurm-jobid.out>