We will now see a more interesting application—we will modify the LIFE (Conway's Game of Life) simulation from the last chapter, so that we will have four independent windows of animation displayed concurrently. (It is suggested you look at this example from the last chapter, if you haven't yet.)
Let's get a copy of the old LIFE simulation from the last chapter in the repository, which should be under conway_gpu.py in the 4 directory. We will now modify this into our new CUDA-stream based concurrent LIFE simulation. (This new streams-based simulation that we will see in a moment is also available in the conway_gpu_streams.py file in this chapter's directory, 5.)
Go to the main function at ...