atomicadd problem


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

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