cudafe.exe crashes when compiling sample SDK program

Hi there,

I am a newbie in CUDA programming. The system I am working on is win7x64+VS2010 with latest CUDA 4.0 and 275.33 driver.
When I build the project in the sample source codes using VS2010 the stopped and cudafe.exe has stopped working. Could someone decode the error? The following is the build output. Thank you very much.

Simon

1>------ Rebuild All started: Project: bandwidthTest, Configuration: Release x64 ------
1>Build started 4/7/2011 18:19:37.
1>_PrepareForClean:
1> Deleting file “x64/Release/bandwidthTest.lastbuildstate”.
1>CudaClean:
1>
1> C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64” -I"./" -I"…/…/common/inc" -I"…/…/…/shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" --keep-dir “x64\Release” -maxrregcount=0 --machine 64 --compile -Xcompiler “/EHsc /nologo /Od /Zi /MT " -o “x64/Release/bandwidthTest.cu.obj” “C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest\bandwidthTest.cu” -clean
1> Deleting file “x64/Release/bandwidthTest.cu.deps”.
1>InitializeBuildStatus:
1> Touching “x64/Release/bandwidthTest.unsuccessfulbuild”.
1>AddCudaCompilePropsDeps:
1> Found “CudaToolkitCustomDir”.
1> Found “AdditionalDeps”.
1> Found “CompileOut”.
1> Found “Include”.
1> Found “Keep”.
1> Found “KeepDir”.
1> Found “NvccCompilation”.
1> Found “NvccPath”.
1> Found “RequiredIncludes”.
1> Found “TargetMachinePlatform”.
1> Found “CInterleavedPTX”.
1> Found “CodeGeneration”.
1> Found “GPUDebugInfo”.
1> Found “MaxRegCount”.
1> Found “PtxAsOptionV”.
1> Found “Defines”.
1> Found “Emulation”.
1> Found “HostDebugInfo”.
1> Found “FastMath”.
1> Found “Optimization”.
1> Found “Runtime”.
1> Found “RuntimeChecks”.
1> Found “TypeInfo”.
1> Found “Warning”.
1> Found “AdditionalOptions”.
1> Found “CommandLineTemplate”.
1>CudaBuild:
1> Compiling CUDA source file bandwidthTest.cu…
1>
1> C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64” -I”./" -I"…/…/common/inc" -I"…/…/…/shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" --keep-dir “x64\Release” -maxrregcount=0 --machine 64 --compile -Xcompiler “/EHsc /nologo /Od /Zi /MT " -o “x64/Release/bandwidthTest.cu.obj” “C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest\bandwidthTest.cu”
1> bandwidthTest.cu
1>CUDACOMPILE : Internal error : assertion failed at: “D:/Bld/rel/gpgpu/toolkit/r4.0/compiler/edg/EDG_4.2/src/host_envir.c”, line 4677
1>
1>
1> 1 catastrophic error detected in this compilation.
1> Compilation aborted.
1>
1> This application has requested the Runtime to terminate it in an unusual way.
1> Please contact the application’s support team for more information.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets(352,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe” -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2010 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64” -I”./” -I"…/…/common/inc" -I"…/…/…/shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" --keep-dir “x64\Release” -maxrregcount=0 --machine 64 --compile -Xcompiler “/EHsc /nologo /Od /Zi /MT " -o “x64/Release/bandwidthTest.cu.obj” “C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest\bandwidthTest.cu”” exited with code 3.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:11.68
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========