Skip to content

Serial Jobs

This shows how to submit one of the serial programs compiled in the section Compiling Serial Programs.

Create a job submission file:

1
2
3
4
#!/bin/bash
# FILENAME:  serial_hello.sub

./serial_hello

Submit the job:

sbatch --nodes=1 --ntasks=1 --gpus-per-node=1 --time=00:01:00 serial_hello.sub

After the job completes, view results in the output file:

1
2
3
cat slurm-myjobid.out
> Runhost:gilbreth-a009.rcac.purdue.edu
> hello, world 
If the job failed to run, then view error messages in the file slurm-myjobid.out.

Back to the Example Jobs section