AnsweredAssumed Answered

kernel compilation fail

Question asked by nyanthiss on Sep 12, 2012
Latest reply on Sep 16, 2012 by nyanthiss



I have this configuration:

Dev: Tahiti Pro
OS: RHEL 6.3
APP SDK: 2.7
Catalyst 8.982
OpenCL 1.2 AMD-APP (938.2)

And i've found that this kernel


kernel void
test2 (global float *in, global float *out)
  int x = get_global_id(0);
  int xx = get_local_id(0);
  local float a[32*32];
  local float b[32*32*8];
  float4 input = vload4(x, in);
  b[x] = length(input);
  float4 res = sin(input);
  a[x] = length(res);
  vstore4(res, x, out);


fails to compile with the message:


calclCompile failedError: Creating kernel test2 failed!


Now, if i change the locals to:

  local float a[32*32*4];
  local float b[32*32*4];


Then it works, which suggests the build fails b/c local mem limit of 32kb.


Two questions: