Conway's genetic laws computed in parallel with OpenMP and OpenCL. With benchmarks for OpenMP, OpenCL (CPU & GPU) as well as sequential execution.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 7 commits ahead of Mobiletainment:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
.gitignore
README.md

README.md

Conway's Game of Life OpenCL/OpenGL Interoperability

Based on a fork from Mobiletainment this implementation uses openCL 1.1 to compute the GameofLife algorithm. Furthermore rendering is done in OpenGL with context sharing.

Benchmark: 4k Resolution, 45 FramesPerSecond @nvidia Geforce GTX970, Intel 2500k

What is special about this?

Creates 2 textures in OpenGL and applys GoL in a OpenCL Kernel, by sharing the memory.

Warning

Ugly Code, with globals and nasty stuff. Even some errors in the gol computation. Dont use the Code as it is or something like that, its just a demo of OpenGL/openCL Interoperability.

Requirements

What you need for compiling:

How to compile?

  1. Install the NVIDIA und Intel OpenCL SDKs
  2. Get the source code and open the project in Visual Studio
  3. Add Include and Libary destinations (APPSDK, CUDA, INTEL) if paths are not default
  4. Change Output and Working Directory
  5. Make sure you have glut dlls etc.
  6. Build

License

(The MIT License)

Copyright (c) 2015 ixeption

Original Copyright Notes:

Copyright (c) 2012 David Pertiller

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.