Monday February 2, 2015
This problem challenges you to combine two versions of a parallel program, one using MPI and the other using OpenMP, into a hybrid program.
The model used in this problem is the same ideal gas model used in two previous challenge problems:

http://hpcuniversity.org/students/weeklyChallenge/89/
http://hpcuniversity.org/students/weeklyChallenge/90/

Your challenge is to combine the MPI and OpenMP versions of the program into a single hybrid MPI+OpenMP version.

When the program runs, each MPI process should spawn threads, each of which should run a copy of the simulation. As in the MPI version, the process with rank 0 should reduce all of the results of those simulations into a single, final result at the end and print that result.

It is recommended that you start from the MPI version and add in the OpenMP code in the appropriate places to complete the program. For reference, the serial (non-OpenMP, non-MPI) version is provided so you can see what was added to create the OpenMP version.

The MPI version of the program is provided below in the "Distributed Ideal Gas solution zip file."

The OpenMP version of the program is provided below in the "Parallel Ideal Gas solution zip file."

The serial version of the program is provided below in the "Parallel Ideal Gas starter zip file."
Show solution
Challenge Resources:
©1994-2020   |   Shodor   |   Privacy Policy   |   NSDL   |   XSEDE   |   Blue Waters   |   ACM SIGHPC   |   feedback  |   facebook   |   twitter   |   rss   |   youtube   |   XSEDE Code of Conduct   |   Not Logged In. Login