Conjugate gradient implementation in C for openCL