clspv
clspv copied to clipboard
cbrt() compilation error
When trying to use the cbrt() function inside a kernel, I get the following compilation error:
"Function Attrs: convergent nounwind readnone declare spir_func float @_Z4cbrtf(float) #0"
This works for me:
kernel void test(global float* out, global float* in) {
int i = get_global_id(0);
out[i] = cbrt(in[i]);
}
Are you using any particular command line options that cause this to happen?