Monday November 30, 2015
Your challenge is to use OpenMP to parallelize a program that models Langton's Ant.
You are provided with starter code in the "Langton's Ant in OpenMP starter zip file" below. Your challenge is to add OpenMP compiler directives that cause parts of the program to be executed in parallel. When the program is run, its output should be identical to the output provided when the starter code is run without OpenMP.
For more information about the Langton's Ant program, see these previous challenge problems:
http://hpcuniversity.org/students/weeklyChallenge/110/
http://hpcuniversity.org/students/weeklyChallenge/111/
http://hpcuniversity.org/students/weeklyChallenge/112/
For more information about the Langton's Ant program, see these previous challenge problems:
http://hpcuniversity.org/students/weeklyChallenge/110/
http://hpcuniversity.org/students/weeklyChallenge/111/
http://hpcuniversity.org/students/weeklyChallenge/112/
Show solution
Challenge Resources:
Langton's Ant in OpenMP starter zip file
—
zip file containing starter code for the "Langton's Ant in OpenMP" challenge problem in C.
Langton's Ant in OpenMP solution zip file
—
zip file containing a solution for the "Langton's Ant in OpenMP" challenge problem in C.
©1994-2024
|
Shodor
|
Privacy Policy
|
NSDL
|
XSEDE
|
Blue Waters
|
ACM SIGHPC
|
|
|
|
|
|
XSEDE Code of Conduct
|
Not Logged In. Login