Monday September 29, 2014
This problem challenges you to modify an existing hybrid parallel program to generate output using NetCDF.
Similar to challenge problem 69, http://hpcuniversity.org/students/weeklyChallenge/69/, your task is to implement NetCDF output in an existing parallel program, namely that solved by challenge problem 83, http://hpcuniversity.org/students/weeklyChallenge/83/. It is recommended you familiarize yourself with these challenge problems first.
The "Hybrid Parallel Acceleration solution" file below contains the code you should modify. A working example of a NetCDF program is also provided in the "netCDF solution zip file" below. You should use this second file as reference when updating the first file.
The MPI process with a rank of 0 should be the one initializing, finalizing, and writing data using NetCDF. The same data that is output using printf should be output to a file using NetCDF.
The resulting program should generate a file called "accel-data.nc" that can be viewed using the ncdump utility provided by NetCDF. The "accel-data sample file" below is an example file generated by a working program running with 2 MPI processes, each with 3 OpenMP threads.
The "Hybrid Parallel Acceleration solution" file below contains the code you should modify. A working example of a NetCDF program is also provided in the "netCDF solution zip file" below. You should use this second file as reference when updating the first file.
The MPI process with a rank of 0 should be the one initializing, finalizing, and writing data using NetCDF. The same data that is output using printf should be output to a file using NetCDF.
The resulting program should generate a file called "accel-data.nc" that can be viewed using the ncdump utility provided by NetCDF. The "accel-data sample file" below is an example file generated by a working program running with 2 MPI processes, each with 3 OpenMP threads.
Show solution
Challenge Resources:
accel-data sample file
—
Sample NetCDF output file for the "NetCDF Acceleration" challenge problem.
Hybrid Parallel Acceleration solution
—
Solution to the "Hybrid Parallel Acceleration" challenge problem in C.
netCDF solution zip file
—
zip file containing a solution for the netCDF challenge problem.
NetCDF Acceleration solution zip file
—
Solution for the "NetCDF Acceleration" challenge problem in C with an included Makefile.
©1994-2025
|
Shodor
|
Privacy Policy
|
NSDL
|
XSEDE
|
Blue Waters
|
ACM SIGHPC
|
|
|
|
|
|
XSEDE Code of Conduct
|
Not Logged In. Login




