Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noewangjy/parallel-data-processing-with-mpi
Course projects of ICE6414P-Parallel Data Processing at Shanghai Jiao Tong University-2022-Spring
https://github.com/noewangjy/parallel-data-processing-with-mpi
mpich open-mpi parallel
Last synced: about 2 months ago
JSON representation
Course projects of ICE6414P-Parallel Data Processing at Shanghai Jiao Tong University-2022-Spring
- Host: GitHub
- URL: https://github.com/noewangjy/parallel-data-processing-with-mpi
- Owner: noewangjy
- Created: 2022-05-18T02:22:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-18T07:18:43.000Z (over 2 years ago)
- Last Synced: 2023-09-08T18:31:55.580Z (over 1 year ago)
- Topics: mpich, open-mpi, parallel
- Language: C++
- Homepage:
- Size: 1.08 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parallel Data Processing with MPI
In this repository, we aim to use [open-MPI](https://www.open-mpi.org/doc/) to realize parallel
data processing. This repo includes 3 tasks implemented with `cpp`:
- Calculate Pi
- Count prime numbers
- Accelerate MatMulPlease check the `README` in each folder for more details.
## Installing MPI
### Automatically
For Ubuntu, you can find `mpich` [here](https://packages.ubuntu.com/focal/mpich).```shell
$ sudo apt-get install mpich
$ sudo make install
```For MacOS, you can simply install `mpich` with homebrew
```shell
$ brew install mpich
```Please Note that in each `CMakeLists.txt` file, you need to change the `CMAKE_CXX_COMPILER` to your
`mpicxx` path.```cmake
set(CMAKE_CXX_COMPILER "/usr/local/bin/mpicxx") # MacOS
set(CMAKE_CXX_COMPILER "/usr/bin/mpicxx") # Ubuntu
```### Manually
Or manually download and compile `mpich`
```shell
$ wget https://www.mpich.org/static/downloads/4.0/mpich-4.0.tar.gz
$ tar -xvf mpich-4.0.tar.gz
$ ./configure
$ make
```If `mpich` is manually installed,we need to configure `MPI_ROOT`
```shell
export MPI_ROOT=$BUILD_DIR
export PATH=$MPI_ROOT/bin:$PATH
export MANPATH=$MPI_ROOT/man:$MANPATH
````$BUILD_DIR` is the directory where you compile `mpich`
Please Note that in each `CMakeLists.txt` file, you need to change the `CMAKE_CXX_COMPILER` to your
`mpicxx` path.```cmake
set(CMAKE_CXX_COMPILER "YOUR_BUILD_PATH/mpicxx")
```## Author
NoeWang at Shanghai Jiao Tong University