项目作者: prOttonicFusion

项目描述 :
Parallelization boilerplate code for C++, Python & Fortran 🏎️💨
高级语言: Fortran
项目地址: git://github.com/prOttonicFusion/MPI-boilerplates.git
创建时间: 2020-04-05T15:06:40Z
项目社区:https://github.com/prOttonicFusion/MPI-boilerplates

开源协议:GNU General Public License v3.0

下载


MPI-boilerplates

Boilerplate code for creating parallel programs in a few different languages using MPI. The commands listed below are from the MPICH implementation of MPI, but Open MPI should also work fine. If using Open MPI, one should replace mpicxx with mpic++.

C++

Compilation:

  1. mpicxx MPI_boilerplate.cpp -o MPI_program

Execution (on 4 processors):

  1. mpiexec -n 4 MPI_program

Python

Execution (on 4 processors):

  1. mpiexec -n 4 python MPI_boilerplate.py

Fortran

Compilation:

  1. mpifort MPI_boilerplate.f90 -o MPI_program

Execution (on 4 processors):

  1. mpiexec -n 4 MPI_program