Simple parallel number finder designed to run on the Jotunn cluster at the University of Iceland. Written for assignment #1 of the HPC B course Fall 2013. After assignment is done, updates to this are planned to further optimize it as a learning exercise (and to hopefully collect a bunch of data for later data mining use...).
Instructions for installing parallel-primes on the Jotunn cluster at the University of Iceland:
- Clone this repository.
- Make a file called
user.in
in the root directory. The file must contain two lines. The first line is your Jotunn login username (usually same as your Ugla login name). The second line must contain the path you want to use for remote builds. See example below. - run
make
to compile the program on Jotunn. The makefile will sync files to Jotunn and build the program there.
If your name was guy
, this might be what your user.in
file looks like:
guy
/home/guy/parallel-primes/
The following things are required for the makefile's remote build to work:
- make
- ssh
- rsync
Additionally, it is recommended that you configure your Jotunn login to use
key authentication. Otherwise you will continually have to type your password.
For public key authentication to work with Jotunn, your .ssh
directory must
be permission 700
and the authorized_keys
file permission 600
.
To run parallel-primes once it's been compiled on Jotunn:
- Log in to Jotunn.
- Go to the directory you specified in
user.in
. - To run without scheduling, use
mpirun
. The program takes one argument: the number to start at. - To run with scheduling, wait until there's a job script in the repo.
If you find yourself outside the University of Iceland, follow these instructions:
- Find a supercomputer.
- Follow install/run instructions as above, except change the hostname in the Makefile to where your supercomputer is located.