Changes

Jump to: navigation, search

GPU610/OctoPig

1,035 bytes added, 11:51, 9 March 2013
Assignment 2
=== Assignment 2 ===
For the second assignment we couldn't choose to do either of our topics for Assignment 1. We decided to do a variation on Conway's Game of Life called SmoothLife. We started with [http://0fps.wordpress.com/2012/11/19/conways-game-of-life-for-curved-surfaces-part-1/ this blog post]. The author goes into great detail about the math behind SmoothLife, but you don't really need to understand it. At the bottom of the post there is a JavaScript implementation of SmoothLife, [http://jsfiddle.net/mikola/aj2vq/ here], and we used that as a starting point.
 
In order to profile the code I ported it over to C++ and ran it on Matrix. The results weren't great. The two functions that consumed the most run time took up a total of 90% of the time, but each run of the function only took 0.01ms. So both of those were out because it wouldn't be worth it. The next two functions took up ~15% runtime combined. We each picked on and moved it to the GPU. We new the results weren't going to be great, but I'm sick of porting JavaScript to C++.
 
=== Assignment 3 ===
1
edit

Navigation menu