Exercise 2: Launching and tracking job steps
- Ensure that you have a Flux instance running in an allocation and determine the number of cores available to you in that allocation.
- Download the mpi_hellosleep.c file and build the application with
mpicc -o mpi_hellosleep mpi_hellosleep.c. - Run
mpi_hellosleepas a blocking job step with enough mpi tasks to fill all of the cores available in your Flux instance. - Submit two non-blocking job steps that will run
mpi_hellosleepwith enough mpi tasks to fill all of the cores available in your Flux instance. Verify that only one of the job steps is running. - Cancel the running job step. Confirm that the other job step is running and attach to it to monitor its progress.
Notes / Solutions
- See Exercise 1.
- On LC systems, mpicc should be in your default path. If it is not, you can run
module load intelandmodule load mvapich2to get the default mpicc on most LC systems. - See ‘Submit blocking job steps’ in Section2.
- See ‘Submit non-blocking job steps’ in Section2.
- See ‘Managing job steps’ in Section2.
Section 1 | Section 2 | Exercise 2 | Section 3
Back to index




