Shishqa / MPI-integral-computer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPI&OpenMP Integral Computer

Outline

The main task of this project is to compute the integral

$$\int\limits_0^1\frac{4}{1+x^2}dx$$

on the a one node and then distribute the computation to the different nodes and measure an acceleration.

Report

report

Detailed report can be found in report.ipynb jupyter notebook.

Prerequisites

Build

Do the following in the root repository folder:

mkdir build && cd build
cmake ..
make

Running

Run locally

mpiexec -n 4 ./bin/count-integral 1000000 1

Run on cluster

  • Install ansible
pip3 install -r requirements.txt
  • Change ansible/hosts file with your host and password
remote ansible_host=USER@calc.cod.phystech.edu ansible_ssh_pass=PASS
  • Run playbook
    • The playbook will prompt you to continue when slurm jobs are finished (you can check this on cluster by running squeue command)
ansible-playbook -i ansible/hosts ansible/run-bench.yml
  • When playbook finished, data will appear in the result.csv file.

About


Languages

Language:Jupyter Notebook 92.3%Language:C++ 7.1%Language:Shell 0.3%Language:CMake 0.3%