使用NVIDIA GPU Computing SDK 4.0和Microsoft VC++ 2010 Express,在没有GPU硬件的情况下执行简单的CUDA程序。

3

我是新手GPU计算,但我在某处读到说可以使用模拟器/仿真器执行CUDA程序而不需要GPU卡。我已经在Windows Vista上安装了NVIDIA的GPU Computing SDK 4.0和Visual C++ 2010 Express。我想知道:

  • Whether it is feasible or not to run CUDA code without a GPU, using NVIDA's Computing SDK 4.0 and Visual C++ 2010 express?

  • Why I get the following error, when I try to execute a sample program I have:

    ------ Build started: Project: example1, Configuration: Debug Win32 ------ 
    1>  '"\nvcc.exe"' is not recognized as an internal or external command, 
    1>  operable program or batch file. 
    1>  Performing Custom Build Tools 
    1> C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
    error MSB6006: "cmd.exe" exited with code 9009.
    

我不确定我是否安装了所有必需的软件,如果还需要其他东西,或者我需要使用产品的另一个版本。


CUDA需要完整版的Visual Studio,它无法与Visual Studio Express一起使用。 - talonmies
1个回答

2
您需要安装NVIDIA CUDA Toolkit 4.0,它将为您带来nvcc编译器、构建CUDA程序所需的所有头文件和库文件。
CUDA Toolkit可以在此处找到:CUDA Toolkit 4.0 据我所知,在CUDA版本>=3.0中不再支持模拟模式。如果我错了,有人可以纠正我。您需要一个支持CUDA的设备才能运行CUDA程序。

事实上,较新版本的CUDA工具包不再支持EMULATOR。因此,我建议您使用旧版本,例如CUDA Toolkit 2.3。请点击此链接获取更多信息:http://if.us.edu.pl/~dawid/CUDA/cudemul.html - karlphillip
1
旧版本的SDK集成了较少的VS,模拟器速度非常慢。我真的建议您为CUDA兼容的显卡投入一定的资金。除非您想要一些尖端的东西,否则这里并不需要花费太多的钱。 - Ade Miller

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接