MPI Modifying Hello World Lab

From Education

Jump to: navigation, search

To spin one of the presentations today, “Greetings from the evening lab.” For tonight, the task at hand is to explore some of the topics that we discussed today in more depth.

Tonight's task isn't too difficult! Let us know if you need assistance:

For this task, log into LittleFe and revisit the “Hello World” MPI program. The example that we discussed today involved passing only character data across the network from the clients to the server. Try these slight variations on the theme:

  • Modify the code so that the SERVER process sends the Hello string to each of the clients.
  • Modify the code so that the CLIENT processes send an integer back to the SERVER process, for the server process to print out.
  • Modify the code so that the CLIENT processes send a double precision number back to the SERVER process, for the server process to print out.

Files

Personal tools
SC Education sites