The OS cluster: get started This instruction is based on part of the
first homework assignment of CSC591 on cluster computing offered by Dr. Frank
Mueller in Spring '03. We also thank Dr. Mueller for sharing this cluster.
and software configuration
Learn how to compile and execute an MPI program
Log in to an OS lab machine (os20-os35), either on the console or remotely:
ssh osXX.csc.ncsu.edu -l <your-unity-username
Your initial password is your
- Please change your password this using
smbpasswd -r click
From your OS lab machine, log in to the OS cluster (os00-os15):
Create the file .rhosts in your home directory and
set the access rights as follows:
chmod 600 .rhosts
Create a subdirectory .gmpi:
Then, create the file .gmpi/conf.
Append to your file .bashrc:
Log out and back in to osYY to activate the new settings.
Find a simple MPI program, such as for calculating Pi linked at the class
Compile the program:
mpicc -g -o pi pi.c
Execute the program on 2 processors:
mpirun -np 2 pi
Try again with a different number of processors.
Add timing operations if necessary and measure the computation time and scalability.