Brute force Double PETSCII search with Python

Chat about anything CX16 related that doesn't fit elsewhere
User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Brute force Double PETSCII search with Python

Post by kliepatsch »


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
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Brute force Double PETSCII search with Python

Post by desertfish »


wow!

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

Brute force Double PETSCII search with Python

Post by ZeroByte »


The results look like impressionist paintings. Very cool.

User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Brute force Double PETSCII search with Python

Post by kliepatsch »


That's a nice description. Yes, slightly "blurry" in the sense that the image is made out of patches of color

Post Reply