Displaying 1 result from an estimated 1 matches for "idwithinclust".
Did you mean:
idwithincluster
2009 Oct 07
3
[LLVMdev] Instructions that cannot be duplicated
...l needed this to be
an array
const unsigned int point_id = get_local_id(0);
int index = 0;
int i, addr;
int xx = get_local_id(0);
clusterCount[xx] = 0;
if(get_local_id(0) == 0){
sTemp[0] = 0; //sTemp is for prefix sum
}
barrier(CLK_LOCAL_MEM_FENCE);
int idWithinCluster = 300; // anthing other then zero
if (point_id < num_objects) {
idWithinCluster = atom_add(&clusterCount
[index],1);
}
barrier(CLK_LOCAL_MEM_FENCE);
int numMembers = 2;
if(idWithinCluster == 0)...