CUDA error: no CUDA-capable device is detected

I have a NVIDIA Quadto 4000 installed on Windows Server R2. The device drivers have installed correctly. Also installed Visual Studio Pro so I can use the 64 bit cl compiler. Finally I have the CUDA Toolkit v 4.0 (64 bit).

I compile a sample program from the command prompt and that works. But when I execute it I get an error: no CUDA-capable device is detected.

c:\Users\Documents>nvcc test.cu -o test
test.cu
tmpxft_0000138c_00000000-3_test.cudafe1.gpu
tmpxft_0000138c_00000000-8_test.cudafe2.gpu
test.cu
tmpxft_0000138c_00000000-3_test.cudafe1.cpp
tmpxft_0000138c_00000000-14_test.ii

c:\Users\Documents>test
CUDA error: no CUDA-capable device is detected

c:\Users\Documents>

This is the program I’m trying to run:

#include <stdio.h>
global void foo()
{
}

int main()
{
foo<<<1,1>>>();
printf(“CUDA error: %s\n”, cudaGetErrorString(cudaGetLastError()));
return 0;
}