i want to increment my acculumator cell and i am using atomicInc(…).
My accumulator provides 2 Byte for each cell, so i have to check if
the value i want to increment is still not higher than 32767.
What’s the best way to do this?
So i need an atomicInc function with a condition which checks the threshold or something like this.
And of course i know that an atomicInc is not the best opportunity for
incrementing accumulator cells, but in the first step it’s the simplest way and
i want to performance measurement with this approach.