Homework
CS 300, Parallel and Distributed Computing (PDC)
- Homework 4 Due 11/16/2016
-
-
SLURM
-
[c]
On
cumulus, create a subdirectory~/PDC/hw4, and copypub/cs300/hw/trap.cppin that homework subdirectory. Also create a filetrapjob.shwith the following contents.#!/bin/sh mpirun --map-by node /home/rab/PDC/F16/trap
Compiletrap.cppwithmpiCC, naming the executabetrap. Then launch an MPI job on SLURM usingcumulus$ sbatch -n 9 -o trapjob.out trapjob.sh
You can use thesqueuecommand and the job number printed bysbatchto determine when your job has finished (should be quick). Then examine the results intrapjob.out.Make a
commitof your code:cumulus$ git add trap.cpp trapjob.sh trapjob.out cumulus$ git commit -m "hw4: SLURM submission of an MPI job"
-
[c]
Experiment with your SLURM job in the previous exercise, for example, using options identified in the cluster job management reading. (Note: avoid launching large jobs in class, since that will slow everyone's work! use
scancelif necessary).Use
committo record the source code for your results.
-
-
Hadoop introduction
-
[c] Carry out steps 1-3 of the Hadoop intro lab on
cumulus. Locate your work in the subdirectory of~/PDCdirected in the lab.
-
-
Submitting this homework
All of your code for this assignment should already be contained in
commits. Modify the most recentcommitmessage to indicate that you are submitting the completed assignment.cumulus$ git commit --amend
Add the following to the latestcommitmessage.hw4: completeIf your assignment is not complete, indicate your progress instead, e.g.,hw4: items 1-5 complete, item 6 partialYou can make later commits to submit updates.Finally,
pull/pushyourcommits in the usual way.cumulus$ git pull origin master cumulus$ git push origin master
Files:
Also, files from A2 and the Hadoop labtrap.cpp trapjob.sh trapjob.out
-