Running MPI Programs on the Cray SV1

  1. Log on to the SV1

  2. Run an MPI program:
    1. compile your MPI program: cc -o myprog myprog.c
      This creates an output, executable file called "myprog"
    2. Run your MPI program: mpirun -np 4 myprog
      This runs myprog with 5 processes
    3. alternative: cc myprog.c
      creates the output file "a.out"
      run this with mpirun -np 4 a.out

  3. Sign out of the Cray: "exit"
  4. MPI Resources