Brute force Double PETSCII search with Python
- kliepatsch
- Posts: 247
- Joined: Thu Oct 08, 2020 9:54 pm
Brute force Double PETSCII search with Python
Heya, progrss here. I managed to port the search over to the GPU. Search time reduced from 10-15 mins down to 15 seconds for a full-on brute force double petscii search.
In order to run it, you need a CUDA-capable GPU, the CUDA toolkit installed, and additionally to the aforementioned Python packages, also NumBa. Some CUDA-capable GPUs are not listed on the official CUDA website, simply because they are older... mine for instance is not listed as CUDA-capable, yet did the Job just fine: Nvidia GeForce MX130.
It was a pain to get it working. But it was a nice challenge to try to get the maximum of computing power out of my machine ?
Find the script attached.
double_petscii_brute_force_8.py
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
Brute force Double PETSCII search with Python
The results look like impressionist paintings. Very cool.
- kliepatsch
- Posts: 247
- Joined: Thu Oct 08, 2020 9:54 pm
Brute force Double PETSCII search with Python
That's a nice description. Yes, slightly "blurry" in the sense that the image is made out of patches of color