项目作者: dingyh0626

项目描述 :
Solve PDE by OpenMP and MPI.
高级语言: C
项目地址: git://github.com/dingyh0626/PDE-by-OpenMP-MPI.git
创建时间: 2018-11-12T12:24:45Z
项目社区:https://github.com/dingyh0626/PDE-by-OpenMP-MPI

开源协议:

下载


Parallel programming: Solving PDE

Solve Poisson equation by hybrid programming with OpenMP and MPI.

Compile

Replace the compiler path with yours and then execute the following commands.

$ cmake -DCMAKE_DEBUG_TYPE=Release

$ make

Usage

  • -np: number of processors
  • —grids: size of grids
  • —threads: number of threads
  • —method: 0 for hybrid OpenMP-MPI, 1 for OpenMP only, default for Sequential method
  • —output: output path

$ mpirun -np 6 ./pde --grids 100 --threads 3 --method 0 --output u.data

$ ./pde --threads 3 --method 1

$ ./pde --method 2

img