Lesson 13

Date: 4/25/2018
High Performance Computing (part II: MPI)
Linux System Administration


MPI code compilation

Exercise
  • Login to master as user edward.

  • Un-tar the source codes from the examples above, ex.tar, into a separate directory, MPI, as shown below:
    wget http://linuxcourse.rutgers.edu/lessons/HPC_1/download/ex.tar
    mkdir MPI
    cp ex.tar MPI; cd MPI
    tar -xvf ex.tar
    
  • The MPI code can be compiled with command mpicc
    mpicc -o ex3.x ex3.c
    

  • Start MPI run on 4 slots:
    mpiexec -n 4 ex3.x
    



  • Take me to the Course Website