Organization: Swarthmore Department: Computer Science Registration Key: pick the 6 first chars your swarthmore user name
Add a device. If you have a phone you carry in your pocket, use that. If not contact Andrew Ruether in ITS and he will give you a device to use and help you register it.
ssh newhall@login.xsede.org # enter passcode gsissh cometOnce logged into comet, upload a public key from your cs account to comet (your public key is in ~/.ssh/id_rsa.pub). On comet:
mkdir .ssh vi authorized_keys # copy in your pub key from your cs accountIn our git guide is some information about generating keys on our system: generating keys
ssh newhall@comet.sdsc.edu
# copy over foo.c scp newhall@cs.swarthmore.edu:/home/newhall/public/foo.c . # WARNING: this does a recursive copy of all contents under the specified # directory (my mpi_examples directory in this example): scp -R newhall@cs.swarthmore.edu:/home/newhall/public/mpi_examples .You can also create a single tar file of a set of files to easily copy over and then untar it once copied over. Here is my documentation about using tar. You can also look at the tar man page for more information.
squeue # list all jobs in the job queue (there will be lots) sbatch job.mpi # to submit a batch job from a slurm script # this will give you a jobId for your job squeue -u yourusername # list all jobs in the job queue that you own scancel jobId # to kill a queued job man slurm # the man page for slurm
/share/apps/examples/ # example job scripts (see mpi examples)
The Comet User's Guide has a lot more information and examples.
# from comet, copy over my hello world example, untar and make it scp /home/newhall/public/XSEDE_MPI.tar . tar xvf XSEDE_MPI.tar cd XSEDE_MPI make vi hello.mpi # change the path name to helloworld to your path # (in mpi_run_rsh command line change newhall to your user name) # submit your job sbatch hello.mpi # check its status squeue -u yourusername # after it has run its output is in a file (vi, cat, less, ... to view) less helloworldJOBID.outThe hello.mpi is an example slurm runscript that you can use as a starting point for other mpi applications you run. It submits the job to the debug queue, which is the one you want to use for testing before submitting longer experiment runs to the compute queue.
module avail # lists software available on comet
cp -r /home/newhall/public/openMPI_examples .