A quantized game of life displaying metapixel galaxy pattern (Fig. 12 in our paper)
python galaxy.py --arch [cpu/cuda] -o [output_dir]
We suggest you run the script using GPU (--arch cuda
). Because to better observe the evolution of metapixels, we set the steps per frame to be 32768 which will take quite a while on CPUs.
A super high-resolution game of life displaying letters of "QUANT SIM" (Fig. 1 in our paper)
-
Download the pattern
quant_sim_meta.rle
from our Google Drive and place it in the same folder withquant_sim.py
-
Run the code
python quant_sim.py --arch [cpu/cuda] -o [output_dir]
-
The pattern file for this demo contains 20B cells in Run-Length Encoding format. We use a naive serial parsing method to parse the pattern file so it may take one hour to finish the pattern loading.
-
Before offloading the pattern to GPU and running Taichi kernels, we first store it into a large Numpy array which will require approximately 19GB of host memory, so please make sure your workstation/server has enough memory.
-
This demo requires a minimal of 7GB of device memory, so please make sure your GPU meets this requirement.