This is my winning submission for the Hybrid Challenge at XSEDE HPC 2018 Summer Boot Camp, taught at Pittsburgh Supercomputing Center.
laplace_mpi-grid_openacc_async_margin.c
is the submitted program, modified from example C program by John Urbanic, who taught the course. It solves the Laplace equation with Jacobi iteration, as explained at, e.g. https://devblogs.nvidia.com/openacc-example-part-1/.
final-submission.job
is a Bash script with directives for the Slurm job scheduler. It is intended for four nodes, each with 2x NVIDIA P100 GPU. The C code is written a way for easy manipulation by compiler flags, making it easy to use Bash variables and loops to test a wide variety of parameters.