Error (syntax error) before 'Identifier'  Attribute[GroupSize(GROUP_SIZE,1,1)]

Discussion created by xmuben on Jun 17, 2009
Latest reply on Jun 18, 2009 by gaurav.garg

the testing  code is

#define  GROUP_SIZE 16
kernel void kernelGPU(float input1 <>,float input2 <>, out float output<>
 int2 index = instance().xy;
 int a=index.x;
 int b=index.y;
 output= input1+input2;

How can I solve this problem?

What is the diffirence between instanceInGroup() and instance()?

If I set the groupsize to GROUP_SIZE and input Vector is set to <4*GROUP_SIZE>

Does Max(instanceInGroup().x) equal  Max(instance().x)?