简单的CUDA程序执行没有GPU硬件使用NVIDIA GPU计算SDK 4.0和microsoft VC ++ 2010 express [英] simple CUDA program execution without GPU hardware using NVIDIA GPU computing SDK 4.0 and microsoft VC++ 2010 express

查看:686
本文介绍了简单的CUDA程序执行没有GPU硬件使用NVIDIA GPU计算SDK 4.0和microsoft VC ++ 2010 express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GPU计算的新手,但在某个地方我读过,可以使用模拟器/模拟器执行CUDA程序,没有GPU卡。我在Windows Vista上安装了NVIDIA的GPU Computing SDK 4.0和Visual C ++ 2010 Express。我想知道:

I am new to GPU computing , but somewhere I've read that it's possible to execute a CUDA program without a GPU card using a simulator/ emulator. I have installed NVIDIA's GPU Computing SDK 4.0 and Visual C++ 2010 Express on Windows Vista. I would like to know:


  • 使用NVIDA的Computing SDK 4.0是否可以运行没有GPU的CUDA代码和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.


我不确定是否已安装

推荐答案

您必须安装所需的软件,才能使用其他版本的产品。 NVIDA CUDA Toolkit 4.0 witch带来了nvcc编译器,所有头文件和库文件都需要构建一个CUDA程序。

You have to install the NVIDA CUDA Toolkit 4.0 witch brings you the nvcc compiler, all headers and libraries needet to build a CUDA program.

可以在这里找到CUDA工具包 CUDA Toolkit 4.0

The CUDA Toolkit can be found here CUDA Toolkit 4.0

据我所知,CUDA版本> = 3.0不再支持仿真模式,如果我错了,有人可能会纠正我这个话题。您需要支持CUDA的设备才能运行CUDA程序。

As far as i know the emulation mode is no longer supported in CUDA versions >= 3.0, if i'm wrong someone may correct me on this topic. You'll need a CUDA enabled device to run a CUDA program.

这篇关于简单的CUDA程序执行没有GPU硬件使用NVIDIA GPU计算SDK 4.0和microsoft VC ++ 2010 express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆