( ! ) Notice: session_start() [function.session-start]: Server 127.0.0.1 (tcp 21201) failed with: Failed reading line from stream (0) in /var/www/html/common-trunk/SWAT/SWAT.php5 on line 108
Call Stack
#TimeMemoryFunctionLocation
10.0008171336{main}( )../viewChallenge.php5:0
20.0015286072include_once( '/var/www/html/hpcu/config/standardIncludes.php5' )../viewChallenge.php5:20
30.078411551952SWAT->startSession( )../standardIncludes.php5:138
40.078511551976session_start ( )../SWAT.php5:108
HPC University: Parallel Ideal Gas 2
 
Monday March 2, 2015
This problem challenges you to parallelize a program that has been profiled using GNU gprof and for which a section has been identified as a candidate for parallelism.
This problem is based on a previous challenge problem with which you are recommended to first familiarize yourself, linked below.

http://hpcuniversity.org/students/weeklyChallenge/92/

Given the solution to the previous challenge problem and the starter code at the bottom of this challenge, take the function that was identified as a candidate for parallelism, and make a parallel version of it using OpenMP, making sure to preserve the same results when switching between serial and parallel (to help verify this, you can turn off randomness - use a constant seed for the random number generator in line 37 of main.c, e.g. srandom(0)).

There are a number of previous challenge problems related to OpenMP and shared memory that you can use as reference if needed for using OpenMP to parallelize:

http://hpcuniversity.org/students/weeklyChallenge/89/
http://hpcuniversity.org/students/weeklyChallenge/80/
http://hpcuniversity.org/students/weeklyChallenge/76/
http://hpcuniversity.org/students/weeklyChallenge/67/
http://hpcuniversity.org/students/weeklyChallenge/63/
http://hpcuniversity.org/students/weeklyChallenge/62/
http://hpcuniversity.org/students/weeklyChallenge/60/
Show solution
Challenge Resources:
©1994-2025   |   Shodor   |   Privacy Policy   |   NSDL   |   XSEDE   |   Blue Waters   |   ACM SIGHPC   |   feedback  |   facebook   |   twitter   |   rss   |   youtube   |   XSEDE Code of Conduct   |   Not Logged In. Login