how to run cuda program from command line?

Hi,

I have Quadro FX570M graphics.
I want to compile and run simple cuda app from command line. I use win xp.
here is how I compiled *.cu file

nvcc -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/MTd -I “C:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc” -I./ -o deviceQuery.exe deviceQuery.cu

and it was ok,
but if I type deviceQuery I get error about "An installable Virtual Device Driver failed Dll initialization.

If I try to start this sample from NVidia SDK browse by clickin “Run”, everythig is fine.

can anyone help me, please

how to run cuda apps from command line after compiling ?

Whatever the name of your .cu file, nvcc compiles it into a.exe. So just type ‘a’ on the command prompt to run your program. There is also probably an option in nvcc to specify what should be the name of your outfile. But a.exe works fine for me. So i havent looked into it.