Clean install of Win 7 64, visual c++ express 2010, CUDA 5. Buildin samples hangs.

Win 7 Professional 64
cuda_5.0.35_winvista_win7_win8_general_64-3
Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel

addVector compiles fine.
simpleGL build hangs and I have to kill msbuild.exe

Please help.
Thanks,
James

More info.

I can right click on vectorAdd.cu from the vectorAdd sample and it compiles fine.

This is the output.

------ Build started: Project: vectorAdd, Configuration: Debug Win32 ------
  Compiling CUDA source file vectorAdd.cu...
  
  C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0

------ Build started: Project: vectorAdd, Configuration: Debug Win32 ------
Compiling CUDA source file vectorAdd.cu…

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe” -gencode=arch=compute_10,code=“sm_10,compute_10” -gencode=arch=compute_20,code=“sm_20,compute_20” -gencode=arch=compute_30,code=“sm_30,compute_30” -gencode=arch=compute_35,code=“sm_35,compute_35” --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” -I"…/…/common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir “Debug” -maxrregcount=0 --machine 32 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o “Win32/Debug/vectorAdd.cu.obj” “C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu”
tmpxft_00000608_00000000-39_vectorAdd.compute_10.ii
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

_Simple\vectorAdd>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin"  -I"../../common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include"  -G   --keep-dir "Debug" -maxrregcount=0  --machine 32 --compile  -g   -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd  " -o "Win32/Debug/vectorAdd.cu.obj" "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0

------ Build started: Project: vectorAdd, Configuration: Debug Win32 ------
Compiling CUDA source file vectorAdd.cu…

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe” -gencode=arch=compute_10,code=“sm_10,compute_10” -gencode=arch=compute_20,code=“sm_20,compute_20” -gencode=arch=compute_30,code=“sm_30,compute_30” -gencode=arch=compute_35,code=“sm_35,compute_35” --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin” -I"…/…/common/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir “Debug” -maxrregcount=0 --machine 32 --compile -g -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o “Win32/Debug/vectorAdd.cu.obj” “C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\0_Simple\vectorAdd\vectorAdd.cu”
tmpxft_00000608_00000000-39_vectorAdd.compute_10.ii
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

_Simple\vectorAdd\vectorAdd.cu" 
  tmpxft_00000608_00000000-39_vectorAdd.compute_10.ii
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

But if I try the same on matrixMul.cu in the matrixMul sample project it hangs with this output…

------ Build started: Project: matrixMul, Configuration: Debug Win32 ------

It’s getting stuck on the GenerateDeps task.

Even the vectorAdd sample takes a minute or two to get past that.

Any ideas?

And now the matrixMul sample took 21 minutes to get past the GenerateDeps task.
At least I know it doesn’t hang but there must be a reason it’s so slow.