Code Sample with MPI - OpenACC

Are there any code samples that show how MPI and OpenACC can be used together.

Thanks.

There are many. Here’s a couple:

Fortran:

Seismic:

with the source packages: http://www.pgroup.com/lit/samples/pginsider/seismic_cpml_samples.tar

Cloverleaf:
https://www.olcf.ornl.gov/wp-content/uploads/2012/05/CloverLeaf_OpenACC_Herdman-2.pdf
http://uk-mac.github.io/

C/C++:

https://devblogs.nvidia.com/parallelforall/benchmarking-cuda-aware-mpi/
http://www.speedup.ch/workshops/w43_2014/tutorial/html/openacc_mpi_1.html

Class #2: https://developer.nvidia.com/openacc-advanced-course

1 Like

Thanks Mat.