Ok, this is driving me crazy. I’m trying to use atomicInc to, you guessed it, atomically increment an integer.
Here’s the troublesome line, (which is more or less exacly as it appears in the programming guide version 2.2 page 109).
[codebox]unsigned int val = atomicInc((unsigned int*)&count, gridDim.x);[/codebox]
And here’s the error
[codebox]hvar_kernel.cuh(211): error: identifier “atomicInc” is undefined[/codebox]
Like I said I’m using the example from the programming guide, mentioned above, and I’ve also studied the simpleAtomicIntrinsics example from the SDK and I can’t see or find anything special in that code that I’m not doing already.
Any advice or suggestions as to why this might be happening would be much appreciated.
Ps… Thanks for the excellent forum, always helped me out in the past despite this being my first post…
Ed: I’m using CUDA2.2, and gcc/++ 4.3.3