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.
Hardware
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
student ID.
- Please change your password this using
smbpasswd -r click
-
From your OS lab machine, log in to the OS cluster (os00-os15):
ssh osYY
-
Create the file .rhosts in your home directory and
set the access rights as follows:
chmod 600 .rhosts
-
Create a subdirectory .gmpi:
mkdir .gmpi
Then, create the file .gmpi/conf.
-
Append to your file .bashrc:
export
PATH="/opt/mpich-1.2.4..8/bin:/opt/gm/bin:/opt/intel/compiler70/ia32/bin:$PATH"
export
LD_LIBRARY_PATH="/opt/mpich-1.2.4..8/lib:/opt/gm/lib:/opt/intel/compiler70/ia32/lib:$LD_LIBRARY_PATH"
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
webpage.
-
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.
Hints:
Additional references: