'Running a C++ method on GPU using GLUT

I am new to C++ and would like to run a few basic hashing functions on my GPU using GLUT. Now I have my function ready but due to the lack of tutorials online I cannot figure out how I could run my function on the GPU.

How it is organised is basically that the main function has a loop in which I would like to do SHA hashing as fast as possible (via GPU) and return the result (string) to my main thread. Is that even possible?

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source