How can I run a C code on GPU using openGL?

I have this code in C and want it to run on GPU using openGL. I am just beginning to learn openGL.
My main concern is how to shift the code from running on CPU to GPU. Any help is appreciated.

What kind of code ? You said ‘this code’ but I can’t see it.
For doing codes on the GPU side you’ll have to use a shader language, like GLSL.

Try the following links.