I try to use the function sqrt(5) or cos(5) like this:
__kernel void hello(__global float *input, __global float *output)
{
size_t id = get_global_id(0);
float squareroot = cos(5);
}
When i do this, clBuildProgram is != CL_SUCCESS and i got an error.
if (clBuildProgram(program, 0, NULL, NULL, NULL, NULL) != CL_SUCCESS)
Why i can’t use these functions?
Thanks for help