The main task of this project is to compute the integral
on the a one node and then distribute the computation to the different nodes and measure an acceleration.
Detailed report can be found in report.ipynb jupyter notebook.
- OpenMPI distribution
- OpenMP
- CMake
- Access to the cluster running Slurm Workload Manager (optional)
- Ansible (optional)
Do the following in the root repository folder:
mkdir build && cd build
cmake ..
make
mpiexec -n 4 ./bin/count-integral 1000000 1
- 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)
- The playbook will prompt you to continue when slurm jobs are finished (you can check this on cluster by running
ansible-playbook -i ansible/hosts ansible/run-bench.yml
- When playbook finished, data will appear in the
result.csv
file.