- 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.
mpi_hellosleep as 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_hellosleep with 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 intel and
module load mvapich2 to 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