GDBSCAN

Hello sir. I really need help for my final task about DBSCAN in GPU. Is there any possibility to run a function (C programming language) in GPU. The function is about to find distance between records in my data.

double dist(double x[numColom], double y[numColom])
{
int j;
double sum=0;
double result=0;
for(j=0; j<col; j++)
{
double dis=(x[j]-y[j])*(x[j]-y[j]);
sum=sum+dis;
}
result=sqrt(sum);
return result;
}

That is the function i need to run on gpu. Thank you for all of your reply, sir.