__declspec(thread) unknown attribute "thread" CUDA 4.0, VS 2010, WinXP x64 Pro

I was upgrading from cuda 3.2 and vs2008 to cuda 4.0 and vs2010.

In the code there’s this line

__declspec(thread)

the compilation will fail with the error.

error : unknown attribute "thread"
error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe" -gencode=arch=compute_13,code=\"sm_13,compute_13\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64"  -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include"     -maxrregcount=32  --machine 64 --compile      -Xcompiler "/EHsc /nologo /Od /Zi  /MD " -o "..\..\..\tmp\Test.Convolve\x64\Release\ConvolveSupress.cu.obj" "E:\Libraries\Test\src\Test\Convolve\ConvolveSupress.cu"" exited with code 2.

The file compiled without a problem in cuda 3.2 and vs2008