Giter Site home page Giter Site logo

gameoflife's Introduction

GameOfLife

Conway's "Game of Life" Implemented in Modern Fortran with MPI and OpenMP

Features Demonstrated

OO-Fortran

The game_board_type class contains all the necessary data and all operations on these data are type-bound procedures. The overall program should be self- documenting as the basic steps of the algorithm are appropriately named procedures (although the code is somewhat obfuscated by MPI preprocessor guards).

MPI

This code uses the mpi_f08 interface which has a more mondern Fortran style. It also should allow for the use of passing array sections to MPI routines without the cost of unnecessary copies. Support for this style appears to be very recent with some compilers. Some of the MPI features of note that are used include:

  • Thread-aware MPI initialization
  • Fortran 90 kind equivalent MPI_Datatype creation
  • Creation of a Cartesian MPI communicator to allow more optimal rank ordering for the network topology (performance impact unmeasured)
  • Non-blocking send/receive calls
  • Collective reduction

OpenMP

Some intermediate features of OpenMP are used.

  • collapse of parallel do loops for nested DO blocks
  • conditional entry into OpenMP regions
  • parallel sections for work-sharing of a set number of independent operations; used for MPI send/receive calls when the MPI implementation supports calls from multiple threads (could be performance gain or loss)
  • reduction clause in parallel do statement

gameoflife's People

Contributors

bcornille avatar

Stargazers

Zhou, Conghao 周丛浩 avatar Ivan Pribec 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.