3 ms·
That's interesting, I recently wrote a game of life that uses PyTorch to run on the GPU: https://gist.github.com/olooney/d835353176bd9a679ad2f057cd58ba53 https
by olooney 2y ago
That's interesting, I recently wrote a game of life that uses PyTorch to run on the GPU:
https://gist.github.com/olooney/d835353176bd9a679ad2f057cd58ba53 https://gist.github.com/olooney/d835353176bd9a679ad2f057cd58...
It benefits from using PyTorch's 2D convolution operation but sufferers it has to keep casting types to get it to work. Still, it's quite fast for very large grids!
- jerpint 2y agoI implemented a version of game of life using 2D convolutions from scipy, I’d be curious to see how it compares to GPU crunching