compileter do not recognise the __syncthreads() in CUDA 5.5

Hello!!! I install on my computer MS VS 2012 and SDK CUDA 5.5. Computer’s OS is WIN 7 32 bit. I create the simple program which add the small 2 massives. It’s OK. But when I use __syncthreads() in kernel functions than compileter gives me error. Why? Please help me.

Is this compiler giving this information, meaning when You try to compile Your code You get error message? Or is it intellisense, underlining with red wavy line the calls of __syncthreads()?

Cheers,
MK

Which error message do you receive?

Make sure your CUDA code is a file with a .cu file name extension.