Code Monkey home page Code Monkey logo

cuda_gameoflife's Introduction

CUDA_GameOfLife

Conway's Game of Life implementation with CUDA

Team

NIM Name
24060120130044 Alvin Triseptia Mairis
24060120130059 Liem, Roy Marcelino
24060120140149 Muhammad Fariz Aditya Pratama
24060120140164 Daniel Elul Zabdianto

Colab Link

https://colab.research.google.com/drive/1FQyVgMeABPgA6Y005ZVVHpBjjBvvZMTJ#scrollTo=otxJgz8OfRsi&uniqifier=1

Files

serial.cpp: Serial implementation of Conway's Game of Life
output-serial.txt: Output for serial.cpp

cuda.cu: CUDA implementation of Conway's Game of Life
output-cuda.txt: Output for cuda.cu

visualize.py: Visualize output-serial.txt or output-cuda.txt (specify in FILE_NAME constant) with Pygame
generate_field.py: Generate initial pattern to use. Output at field.txt (specify in FILE_NAME constant)
field-gosper.txt: Gosper's Glider Gun pattern. 40x40
field.txt: Default output file for generate_field.py

Note: field.txt and field-gosper.txt are used in serial.cpp and cuda.cu in initField() procedure. Change TEMPLATE_SIZE according to field_size in generate_field.py

cuda_gameoflife's People

Contributors

alvintriseptia avatar faradayy05 avatar liemroym avatar teeaarr 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.