Running MPI Programs on the Cray SV1
- Log on to the SV1
- ssh cray (or "seymour", "seymour.tjhsst.edu")
- enter the password
- Type "bash" to use the shell you are used to
- for instance, you'll be able to use tab completion and the arrow
keys to repeat commands
- check the current directory path: use "pwd" (print working directory)
The path should be: /local/yourusername/
- Run an MPI program:
- compile your MPI program: cc -o myprog myprog.c
This creates an output, executable file called "myprog"
- Run your MPI program: mpirun -np 4 myprog
This runs myprog with 5 processes
- alternative: cc myprog.c
creates the output file "a.out"
run this with mpirun -np 4 a.out
- Sign out of the Cray: "exit"
- MPI Resources