HPC MUSE2025 Workshop2: Difference between revisions
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
# Edit the <code>submit.sh</code> script to change the email address to your email address and "Your name" in the '''export''' line to your own name. Use either <code>nano</code> or the Open OnDemand edit file option in the file manager | # Edit the <code>submit.sh</code> script to change the email address to your email address and "Your name" in the '''export''' line to your own name. Use either <code>nano</code> or the Open OnDemand edit file option in the file manager | ||
# [Optional] Edit the other submit scripts to change the email address to your email address. Use either <code>nano</code> or the Open OnDemand edit file option in the file manager | # [Optional] Edit the other submit scripts to change the email address to your email address. Use either <code>nano</code> or the Open OnDemand edit file option in the file manager | ||
# Run the | # Run the job <code>sbatch submit.sh</code> (this one will finish quickly) | ||
# Review the job.'''jobnumber'''.out file <code>cat job.####.out</code> or use the Open OnDemand file manager to view the contents | # Review the job.'''jobnumber'''.out file <code>cat job.####.out</code> or use the Open OnDemand file manager to view the contents | ||
# Run the other | # Run the other three jobs (these run much faster), e.g. <code>sbatch submit-mpi.sh</code> then <code>sbatch submit-mpi.sh</code> and finally <code>sbatch submit-gpu.sh</code> | ||
# Review the job output files for these jobs | # Review the job output files for these jobs | ||
Additional help for this tutorial can be found at [https://docs.hpc.tcnj.edu/index.php/HPC_Cluster_Job_Scheduler#Submitting_Your_First_HPC_Job Submitting Your First HPC Job] | Additional help for this tutorial can be found at [https://docs.hpc.tcnj.edu/index.php/HPC_Cluster_Job_Scheduler#Submitting_Your_First_HPC_Job Submitting Your First HPC Job] |
Revision as of 00:12, 5 June 2025
MUSE HPC 2025 Workshop #2
HPC Hands-On Labs
Hands-On Lab #1 - Logging into Open OnDemand
- Login to ELSA's Open OnDemand web portal with your TCNJ login and password
- Open browser and go to https://ondemand.hpc.tcnj.edu/
- Create your home directory if necessary by following the on-screen instructions
Additional help for this tutorial can be found at Accessing the Cluster via Open OnDemand
Hands-On Lab #2 - Open a Terminal in Open OnDemand
- Login to the Open OnDemand port if you're not already logged in
- Using the Open OnDemand menu, go to
Clusters
and choose_ELSA OpenHPC Cluster Shell Access
- Execute Linux commands at the terminal prompt, e.g.
ls
- When you are done with the terminal, type
exit
at the command prompt and close the browser tab
Additional help for this tutorial can be found at Accessing the Cluster via SSH using Open OnDemand
Hands-On Lab #3 - Running a Cluster Job
- Open a terminal shell again
- Add the ELSA tutorial module by running
module add elsa-tutorial
- Run the ELSA tutorial setup script
elsa-tutorial-setup.sh
- Change to elsa-tutorial directory
cd elsa-tutorial
- Look at the a submit script
cat submit.sh
- Look at the other submit scripts in the tutorial directory using either
cat
or the Open OnDemand file manager - Edit the
submit.sh
script to change the email address to your email address and "Your name" in the export line to your own name. Use eithernano
or the Open OnDemand edit file option in the file manager - [Optional] Edit the other submit scripts to change the email address to your email address. Use either
nano
or the Open OnDemand edit file option in the file manager - Run the job
sbatch submit.sh
(this one will finish quickly) - Review the job.jobnumber.out file
cat job.####.out
or use the Open OnDemand file manager to view the contents - Run the other three jobs (these run much faster), e.g.
sbatch submit-mpi.sh
thensbatch submit-mpi.sh
and finallysbatch submit-gpu.sh
- Review the job output files for these jobs
Additional help for this tutorial can be found at Submitting Your First HPC Job
Hands-On Lab #4 - The Final Exam
- Download the zip file from Another Pi Implementation to your computer
- Unpack the zip on your local machine
- Make a new folder in your ELSA cluster home directory (e.g.
workshop1
) - Upload at least the
mpi-pi-numinteg
program (optionally upload the other files) to the folder you created above - Copy the
submit-mpi.sh
script from theelsa-tutorial
folder - Edit the copy to make any necessary changes
- Change the command to run from
mdart 50000 10000
to./mpi-pi-numinteg
- Use 2 nodes with 16 ntasks
- Change the command to run from
- Change permissions on the
mpi-pi-numinteg
program while in the Linux shell to make it executablechmod +x mpi-pi-numinteg
- Run the job by submitting it from the Linux shell
- Review the job.jobnumber.out file