search for: atom_add

Displaying 1 result from an estimated 1 matches for "atom_add".

Did you mean: atomic_add
2009 Oct 07
3
[LLVMdev] Instructions that cannot be duplicated
..., 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) { clusterCount[index] = atom_add(&sTemp[0], numMembe...