Generally, I use sagemath, but in this project I am trying to do what I do there in C.
Point * ScalarNumber
I could not see a method for processing
I added it here. I'm not a complete programmer so I'm writing it here.
It works for CPU but I want to run this method with GPU.
Can you help me ?
~snip
When you say running on GPU, do you mean only on NVIDIA GPUs, so CUDA, or on all GPUs, meaning OpenCL?
I can give you some advice to help you CUDA'ify your function, but first you have to install the CUDA Toolkit.
You should modify your function to pass the return value as a pointer argument, so that the function itself returns void. Also change all references to pointers, I have no idea how CUDA will handle references.
Move the exit() function outside of the function so that it runs on the CPU. You can do that by setting the return value to some null value on failure and then copying it to the CPU, then on the CPU make a condition that exits the program if it's NULL.
Once you do that, put __global__ in front of the function signature like this: __global__ void ECMultiply(Point* p, Int* scalar, Point* ret) (external function, do not make it a method). Change the file extension to .cu and then you're all set!