atomicadd problem

Hi

I am trying to use the atomicadd function in my device code but i get

identifier
1> “atomicAdd” is undefined
1> atomicAdd(lock, 1);

I wonder what should I include to be able to use this function.

The examples does not include any specific .h file

thanks in advance

nevermind, i forgot to add the extra command for atomic operations