Processing hashcat visualizer with java opencl and cuda

this is something i am currently working on with the aid of deepseek. can you guys help me to fix the gpu initialization routine? currently the code is above the maximmum size, so i had to post it outside the forum
https://hastebin.com/share/iximejecup.swift