CUDA VS Wizard: cutil32.dll not found
I am new to CUDA and also VS. I tried to make a sample project with CUDA VS Wizard. However, I always get the error message when the program runs. "This application has failed to start because cutil32.dll was not found. Re-installing the application may fix this problem". I have carefully checked the VC++ Directories for Executable files, Include files, Library files according to the Hands On from "IAP09 CUDA@MIT 6.963". The samples from "NVIDA GPU Computing SDK" run well. I have no ideas for this. Could you please help me.

This is the VC++ project file:

<?xml version="1.0" encoding="windows-1258"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="Project1"
ProjectGUID="{0D229D9B-E688-4C68-B1DE-3685001CD543}"
RootNamespace="Project1"
Keyword="Win32Proj"
TargetFrameworkVersion="0"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
<DefaultToolFile
FileName="cuda.rules"
/>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="CUDA"
Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"
Optimization="0"
Defines="_DEBUG;_CONSOLE"
GenerateDebugInformation="true"
InternMode="2"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="cudart.lib cutil32D.lib"
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="CUDA"
Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"
Optimization="2"
Defines=";_CONSOLE"
InternMode="2"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="cudart.lib cutil32.lib"
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="EmuDebug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="CUDA"
Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"
Optimization="0"
Defines="_DEBUG;_CONSOLE"
Emulation="true"
GenerateDebugInformation="true"
InternMode="2"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
RuntimeLibrary="1"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="cudart.lib cutil32.lib"
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="&quot;$(CUDA_LIB_PATH)&quot;;&quot;$(NVSDKCUDA_ROOT)\common\lib&quot;;&quot;C:\Program Files\NVIDIA Corporation\NVIDA GPU Computing SDK\C\bin\win32\EmuDebug&quot;"
GenerateDebugInformation="true"
SubSystem="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="EmuRelease|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="CUDA"
Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"
Optimization="2"
Defines=";_CONSOLE"
Emulation="true"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="0"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="cudart.lib cutil32.lib"
LinkIncremental="1"
SuppressStartupBanner="true"
AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"
GenerateDebugInformation="true"
SubSystem="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;res
x;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
<File
RelativePath=".\sample.cu"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
I am new to CUDA and also VS. I tried to make a sample project with CUDA VS Wizard. However, I always get the error message when the program runs. "This application has failed to start because cutil32.dll was not found. Re-installing the application may fix this problem". I have carefully checked the VC++ Directories for Executable files, Include files, Library files according to the Hands On from "IAP09 CUDA@MIT 6.963". The samples from "NVIDA GPU Computing SDK" run well. I have no ideas for this. Could you please help me.



This is the VC++ project file:



<?xml version="1.0" encoding="windows-1258"?>

<VisualStudioProject

ProjectType="Visual C++"

Version="9.00"

Name="Project1"

ProjectGUID="{0D229D9B-E688-4C68-B1DE-3685001CD543}"

RootNamespace="Project1"

Keyword="Win32Proj"

TargetFrameworkVersion="0"

>

<Platforms>

<Platform

Name="Win32"

/>

</Platforms>

<ToolFiles>

<DefaultToolFile

FileName="cuda.rules"

/>

</ToolFiles>

<Configurations>

<Configuration

Name="Debug|Win32"

OutputDirectory="$(SolutionDir)$(ConfigurationName)"

IntermediateDirectory="$(ConfigurationName)"

ConfigurationType="1"

CharacterSet="2"

>

<Tool

Name="VCPreBuildEventTool"

/>

<Tool

Name="VCCustomBuildTool"

/>

<Tool

Name="CUDA"

Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"

Optimization="0"

Defines="_DEBUG;_CONSOLE"

GenerateDebugInformation="true"

InternMode="2"

/>

<Tool

Name="VCXMLDataGeneratorTool"

/>

<Tool

Name="VCWebServiceProxyGeneratorTool"

/>

<Tool

Name="VCMIDLTool"

/>

<Tool

Name="VCCLCompilerTool"

Optimization="0"

PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"

MinimalRebuild="true"

BasicRuntimeChecks="3"

RuntimeLibrary="1"

UsePrecompiledHeader="2"

WarningLevel="3"

DebugInformationFormat="4"

/>

<Tool

Name="VCManagedResourceCompilerTool"

/>

<Tool

Name="VCResourceCompilerTool"

/>

<Tool

Name="VCPreLinkEventTool"

/>

<Tool

Name="VCLinkerTool"

AdditionalDependencies="cudart.lib cutil32D.lib"

LinkIncremental="1"

SuppressStartupBanner="true"

AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"

GenerateDebugInformation="true"

SubSystem="1"

TargetMachine="1"

/>

<Tool

Name="VCALinkTool"

/>

<Tool

Name="VCManifestTool"

/>

<Tool

Name="VCXDCMakeTool"

/>

<Tool

Name="VCBscMakeTool"

/>

<Tool

Name="VCFxCopTool"

/>

<Tool

Name="VCAppVerifierTool"

/>

<Tool

Name="VCPostBuildEventTool"

/>

</Configuration>

<Configuration

Name="Release|Win32"

OutputDirectory="$(SolutionDir)$(ConfigurationName)"

IntermediateDirectory="$(ConfigurationName)"

ConfigurationType="1"

CharacterSet="2"

WholeProgramOptimization="1"

>

<Tool

Name="VCPreBuildEventTool"

/>

<Tool

Name="VCCustomBuildTool"

/>

<Tool

Name="CUDA"

Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"

Optimization="2"

Defines=";_CONSOLE"

InternMode="2"

/>

<Tool

Name="VCXMLDataGeneratorTool"

/>

<Tool

Name="VCWebServiceProxyGeneratorTool"

/>

<Tool

Name="VCMIDLTool"

/>

<Tool

Name="VCCLCompilerTool"

Optimization="2"

EnableIntrinsicFunctions="true"

PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"

RuntimeLibrary="0"

EnableFunctionLevelLinking="true"

UsePrecompiledHeader="2"

WarningLevel="3"

DebugInformationFormat="3"

/>

<Tool

Name="VCManagedResourceCompilerTool"

/>

<Tool

Name="VCResourceCompilerTool"

/>

<Tool

Name="VCPreLinkEventTool"

/>

<Tool

Name="VCLinkerTool"

AdditionalDependencies="cudart.lib cutil32.lib"

LinkIncremental="1"

SuppressStartupBanner="true"

AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"

GenerateDebugInformation="true"

SubSystem="1"

OptimizeReferences="2"

EnableCOMDATFolding="2"

TargetMachine="1"

/>

<Tool

Name="VCALinkTool"

/>

<Tool

Name="VCManifestTool"

/>

<Tool

Name="VCXDCMakeTool"

/>

<Tool

Name="VCBscMakeTool"

/>

<Tool

Name="VCFxCopTool"

/>

<Tool

Name="VCAppVerifierTool"

/>

<Tool

Name="VCPostBuildEventTool"

/>

</Configuration>

<Configuration

Name="EmuDebug|Win32"

OutputDirectory="$(SolutionDir)$(ConfigurationName)"

IntermediateDirectory="$(ConfigurationName)"

ConfigurationType="1"

CharacterSet="2"

>

<Tool

Name="VCPreBuildEventTool"

/>

<Tool

Name="VCCustomBuildTool"

/>

<Tool

Name="CUDA"

Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"

Optimization="0"

Defines="_DEBUG;_CONSOLE"

Emulation="true"

GenerateDebugInformation="true"

InternMode="2"

/>

<Tool

Name="VCXMLDataGeneratorTool"

/>

<Tool

Name="VCWebServiceProxyGeneratorTool"

/>

<Tool

Name="VCMIDLTool"

/>

<Tool

Name="VCCLCompilerTool"

Optimization="0"

PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"

RuntimeLibrary="1"

DebugInformationFormat="4"

/>

<Tool

Name="VCManagedResourceCompilerTool"

/>

<Tool

Name="VCResourceCompilerTool"

/>

<Tool

Name="VCPreLinkEventTool"

/>

<Tool

Name="VCLinkerTool"

AdditionalDependencies="cudart.lib cutil32.lib"

LinkIncremental="1"

SuppressStartupBanner="true"

AdditionalLibraryDirectories="&quot;$(CUDA_LIB_PATH)&quot;;&quot;$(NVSDKCUDA_ROOT)\common\lib&quot;;&quot;C:\Program Files\NVIDIA Corporation\NVIDA GPU Computing SDK\C\bin\win32\EmuDebug&quot;"

GenerateDebugInformation="true"

SubSystem="1"

/>

<Tool

Name="VCALinkTool"

/>

<Tool

Name="VCManifestTool"

/>

<Tool

Name="VCXDCMakeTool"

/>

<Tool

Name="VCBscMakeTool"

/>

<Tool

Name="VCFxCopTool"

/>

<Tool

Name="VCAppVerifierTool"

/>

<Tool

Name="VCPostBuildEventTool"

/>

</Configuration>

<Configuration

Name="EmuRelease|Win32"

OutputDirectory="$(SolutionDir)$(ConfigurationName)"

IntermediateDirectory="$(ConfigurationName)"

ConfigurationType="1"

CharacterSet="2"

>

<Tool

Name="VCPreBuildEventTool"

/>

<Tool

Name="VCCustomBuildTool"

/>

<Tool

Name="CUDA"

Include="$(CUDA_INC_PATH);$(NVSDKCUDA_ROOT)\common\inc"

Optimization="2"

Defines=";_CONSOLE"

Emulation="true"

/>

<Tool

Name="VCXMLDataGeneratorTool"

/>

<Tool

Name="VCWebServiceProxyGeneratorTool"

/>

<Tool

Name="VCMIDLTool"

/>

<Tool

Name="VCCLCompilerTool"

PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"

RuntimeLibrary="0"

DebugInformationFormat="3"

/>

<Tool

Name="VCManagedResourceCompilerTool"

/>

<Tool

Name="VCResourceCompilerTool"

/>

<Tool

Name="VCPreLinkEventTool"

/>

<Tool

Name="VCLinkerTool"

AdditionalDependencies="cudart.lib cutil32.lib"

LinkIncremental="1"

SuppressStartupBanner="true"

AdditionalLibraryDirectories="$(CUDA_LIB_PATH);$(NVSDKCUDA_ROOT)\common\lib"

GenerateDebugInformation="true"

SubSystem="1"

/>

<Tool

Name="VCALinkTool"

/>

<Tool

Name="VCManifestTool"

/>

<Tool

Name="VCXDCMakeTool"

/>

<Tool

Name="VCBscMakeTool"

/>

<Tool

Name="VCFxCopTool"

/>

<Tool

Name="VCAppVerifierTool"

/>

<Tool

Name="VCPostBuildEventTool"

/>

</Configuration>

</Configurations>

<References>

</References>

<Files>

<Filter

Name="Source Files"

Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"

UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"

>

</Filter>

<Filter

Name="Header Files"

Filter="h;hpp;hxx;hm;inl;inc;xsd"

UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"

>

</Filter>

<Filter

Name="Resource Files"

Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;res

x;tiff;tif;png;wav"

UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"

>

</Filter>

<File

RelativePath=".\ReadMe.txt"

>

</File>

<File

RelativePath=".\sample.cu"

>

</File>

</Files>

<Globals>

</Globals>

</VisualStudioProject>

#1
Posted 10/01/2009 06:38 AM   
The cutil32.dll should be found by Windows during run-time, you may add the directory that includes cutil32.dll to your system environment variable PATH.
The cutil32.dll should be found by Windows during run-time, you may add the directory that includes cutil32.dll to your system environment variable PATH.

#2
Posted 11/18/2009 08:55 PM   
Scroll To Top