In order to successfully complete this assignment you need to participate both individually and in groups during class. If you attend class in-person then have one of the instructors check your notebook and sign you out before leaving class on 1/15.
ICA 02: Pandemic Example#
Image from: Researchers Delay Cronoavirus Vaccine
Agenda for today’s class (70 minutes)#
(20 minutes) Welcome to CMSE401!
(10 minutes) Homework 1
(20 minutes) Project Planning
(20 minutes) Pandemic Software on HPCC
1. Welcome to CMSE401!#
How did software setup go? Where did you get stuck? What questions do you have?
2. Homework 1#
Wave equation simulation and runtime study. Homework 1
3. Project Planning#
4. Pandemic Software on HPCC#
Now we are all going to log onto the HPCC and run a Pandemic simulator. This is intended to be an overview for the class.
Please ask questions and try to follow along.
It is okay if we don’t get to everything in class.
We will be covering these commands all semester so it is also okay if you don’t fully understand what is going on.
Step 1: Start an OpenOnDemand interactive desktop session.#
Go to http://OnDemand.hpcc.msu.edu, select “Interactive Apps–>Interactive Desktop”. Set the number of hours to 1 and the number of cores to 1 and the memory to 1GB. Under advanced options set the node type to “Any”. Leave everything else blank and hit “Launch”.
Select “Interactive Apps–>Interactive Desktop” again. This time set the number of hours to 1 and the number of cores to 4 and the memory to 1GB. Under advanced options set the node type to “Any”. Leave everything else blank and hit “Launch”.
Wait for your sessions to start.
NOTE As is the case anytime we use the HPCC, there is no guarantee that these sessions will start during class. This is a shared system and we need to be flexible. You can also do the rest of this assignment on a development node.
Step 2: Open a Terminal app#
Once you have a desktop up and running, open a terminal app from the main menu. Try navigating to “Applications–>System Tools–>Terminal”. Explore this menu a bit to get familiar with some of the programs available inside the interactive desktop.
Step 4: Compile the Pandemic example code#
Type the following command on the terminal. This loads in the intel compiler. Some of the examples we are using in class today use the INTEL compilers.
module load intel
This example uses a Makefile
to help the user know what commands are needed to compile. You an view the Makefile
by using the cat
(catalog) command:
cat Makefile
We run the commands inside the Makefile
using the make
program. All you need to do is type make
and the program will read the Makefile
in the current directory and run it for you.
make
You should see some compiler commands on your screen. This means it is working. Check for errors and debug them.
Step 5: Run the Pandemic example code#
Assuming everything is working, the build command made a few examples. Lets run the examples from the command line:
./Pandemic.serial
This should run the Pandemic code inside your virtual desktop window.
Congratulations, we’re done!#
Have one of the instructors check your notebook and sign you out before leaving class.
Written by Dr. Dirk Colbry, Michigan State University (Updated by Dr. Nathan Haut in Spring 2025)
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.