clspv icon indicating copy to clipboard operation
clspv copied to clipboard

cbrt() compilation error

Open denniskb opened this issue 3 years ago • 1 comments

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"

denniskb avatar Apr 28 '22 14:04 denniskb

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?

alan-baker avatar May 03 '22 15:05 alan-baker