Workaround for the device that doesn't support atomic int32 operation

Discussion created by sonkanit on Apr 9, 2010
Latest reply on Apr 10, 2010 by nou

Unfortunately my laptop is using 4570 and it seems that it doesn't fully support openCl, including the atomic int32 operation.


Is there any other way to make sure that the global increment is done properly? I am thinking of something like critical section in thread APIs.

I tried to use barrier with global flag but the graphic card driver crashed. May be it's because of my code since barrier is not called in every workitem.




Thank you in advance.


if(specificCondition) { //atom_inc(&globalValue); globalValue++; barrier(CLK_GLOBAL_MEM_FENCE); }