We are two students that are learning about HPC, so we programmed this GameOfLife using three diferent methods
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
If you want to print the board of the GameOfLife use the sequentialGame.py
file, all the files that contain -noprint
have no grafical interface and give only the time of the execution.
Open the script you want to execute, and compile it using py example.py
Install OpenMPI from: https://www.open-mpi.org/
- MPI4PY
python -m pip install mpi4py
If you have a NVIDIA GPU you shall install CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
- Numba
python -m pip install numba
For more information check: https://developer.nvidia.com/cuda-python
-
Clone the repo
git clone https://github.com/matbmoser/GameOfLife.git
-
If you want to execute with NUMBA do:
python parallelGame.py
And select the max number of cores
-
If you want to execute with MPI do:
mpiexec -cores <numofcores> python .\parallelGameMPI.py
You can choose the number of cores by changing numofcores to 2 for example
Distributed under the MIT License. See LICENSE.md
for more information.
Mathias Moser - matbmoser@gmail.com
Project Link: https://github.com/matbmoser/GameOfLife