1 Reply Latest reply on Jun 2, 2010 11:14 AM by omkaranathan

    Stream KernelAnalyzer build fail

    bubu

      __kernel __attribute__((vec_type_hint(float4))) __attribute__((reqd_work_group_size(128, 128, 1)))
      void myshader ( __global float4* o )
      {
         o[get_global_id(1)*get_global_size(0)+get_global_id(0)] = (float4)(0.0f);
      }

       

      outputs this:

       

      OpenCL Compile Error: clBuildProgram failed (CL_BUILD_PROGRAM_FAILURE).

      Line 1: warning: attribute "vec_type_hint" ignored
        __kernel __attribute__((vec_type_hint(float4))) __attribute__((reqd_work_group_size(128, 128, 1)))
                                ^

      ˜UoError: Creating kernel myshader failed!

       

      If I remove the reqd_work_group_size attribute ( or I set it to 64,64,1) compiles ok.

      on Vista x64, Cat 10.5, Radeon 5750.