Dryrun: Internal Error

I can’t seem to get the --dryrun switch working on my Vista 64 machine. The command runs fine and builds the preprocessed file when --dryrun is not applied, then I delete the file, rerun with --dryrun and it stops with “Internal error”. Any ideas how to make --dryrun complete without error? Or any other way to find out every command it is doing? The --keep option is good and tells me what the output is and from the names, probably the order the files were generated, but not how they are generated.

The code is the SDK sample template.

c:\CUDA\SDK\projects\template>dir/b template.cu.cpp

File Not Found

c:\CUDA\SDK\projects\template>nvcc -cuda -I..\..\common\inc template.cu

template.cu

tmpxft_0000164c_00000000-3_template.cudafe1.gpu

tmpxft_0000164c_00000000-8_template.cudafe2.gpu

tmpxft_0000164c_00000000-3_template.cudafe1.cpp

c:\CUDA\SDK\projects\template>dir/b template.cu.cpp

template.cu.cpp

c:\CUDA\SDK\projects\template>del template.cu.cpp

c:\CUDA\SDK\projects\template>nvcc -cuda -I..\..\common\inc template.cu --dryrun

#$ _SPACE_=

#$ _MODE_=DEVICE

#$ _HERE_=C:\CUDA\bin

#$ _THERE_=C:\CUDA\bin

#$ TOP=C:\CUDA\bin/..

#$ PATH=C:\CUDA\bin/../extools/bin;C:\CUDA\bin/../open64/bin;C:\CUDA\bin/../bin;C:\CUDA\bin/../lib;C:\Program Files (x86

)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files (x8

6)\Microsoft Visual Studio 9.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Windows\Microsoft.NET\Framework\

v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.

0A\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\system32\WindowsPowerShell\v1.0\;C:\CUDA\bin;c

:\Program Files (x86)\Microsoft SQL Server00\Tools\Binn\;c:\Program Files\Microsoft SQL Server00\Tools\Binn\;c:\Prog

ram Files\Microsoft SQL Server00\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Server00\Tools\Binn\VSShell\Common7\

IDE\;c:\Program Files (x86)\Microsoft SQL Server00\DTS\Binn\;c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common

7\IDE\PrivateAssemblies\

#$ INCLUDES="-IC:\CUDA\bin/../include" "-IC:\CUDA\bin/../include/cudart"

#$ LIBRARIES=  "/LIBPATH:C:\CUDA\bin/../lib" cudart.lib

#$ CUDAFE_FLAGS=

#$ OPENCC_FLAGS=

#$ PTXAS_FLAGS=

#$ PATH=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\CUDA\bin/../extools/bin;C:\CUDA\bin/../open64/bin;C

:\CUDA\bin/../bin;C:\CUDA\bin/../lib;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x8

6)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;C:\Windows\Micros

oft.NET\Framework\v3.5;C:\Windows\Microsoft.NET\Framework\v2.0.50727;C:\Program Files (x86)\Microsoft Visual Studio 9.0\

VC\VCPackages;C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem

;C:\Windows\system32\WindowsPowerShell\v1.0\;C:\CUDA\bin;c:\Program Files (x86)\Microsoft SQL Server00\Tools\Binn\;c:\

Program Files\Microsoft SQL Server00\Tools\Binn\;c:\Program Files\Microsoft SQL Server00\DTS\Binn\;c:\Program Files

(x86)\Microsoft SQL Server00\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server00\DTS\Binn\

;c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\

#$ cl -D__CUDA_ARCH__=100 -nologo -E -TP -DCUDA_NO_SM_13_DOUBLE_INTRINSICS -DCUDA_FLOAT_MATH_FUNCTIONS -DCUDA_NO_SM_12_A

TOMIC_INTRINSICS -DCUDA_NO_SM_11_ATOMIC_INTRINSICS  "-IC:\CUDA\bin/../include" "-IC:\CUDA\bin/../include/cudart"   -I. -

D__CUDACC__ -C  -I "../../common/inc" -FI "cuda_runtime.h" > "C:\Users\Andrew\AppData\Local\Temp/tmpxft_000008a0_0000000

0-3_template.cpp1.ii" "template.cu"

Internal error

c:\CUDA\SDK\projects\template>nvcc --version

nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2009 NVIDIA Corporation

Built on Sat_May__2_05:54:12_PDT_2009

Cuda compilation tools, release 2.2, V0.2.1221

c:\CUDA\SDK\projects\template>cl

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86

Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

c:\CUDA\SDK\projects\template>ver

Microsoft Windows [Version 6.0.6002]

c:\CUDA\SDK\projects\template>