/mpi-demo

An mpi demo implementing odd-even transposition sort with a medium sized C project structure.

Primary LanguageC

Quick start

  1. you need a C compiler and GNU/make
  2. install Open MPI on your OS
  3. run make to compile the program
  4. run make run to run the program

Note

  • "compile_flags.txt" is for clangd to identify the locations of head files
  • ".tasks" is for asynctasks.vim
  • directly use mpiexec -n <N> build/main to run the program with N processes(N must evenly divides data number in this case)

Screenshot

pic