Giter Site home page Giter Site logo

matbmoser / gameoflife Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 182 KB

Parallel Horton's Game of Life with two parallelization methods using MPI and CUDA, including sequential method.

License: MIT License

Python 100.00%
numba cuda gameoflife hpc mpi pygame mpi4y python

gameoflife's Introduction

Contributors Forks Tags Issues MIT License LinkedIn


Logo

Game Of Life

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

Important

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.

Built With

(back to top)

Getting Started

Open the script you want to execute, and compile it using py example.py

Prerequisites

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

Installation

  1. Clone the repo

    git clone https://github.com/matbmoser/GameOfLife.git
  2. If you want to execute with NUMBA do:

    python parallelGame.py

    And select the max number of cores

  3. 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

(back to top)

License

Distributed under the MIT License. See LICENSE.md for more information.

(back to top)

Contact

Mathias Moser - [email protected]

Project Link: https://github.com/matbmoser/GameOfLife

(back to top)

gameoflife's People

Contributors

matbmoser avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.