Hey, I have used Python and CUDA for many years.
I know you want to modify your code to get GPU to accelerate, get the parallel power of GPU.
I know your code want to do SHA 224 hash algorithm, I can do it very well.
Welcome to contact me to discuss more detail.