简单的CUDA程序执行没有GPU硬件使用NVIDIA GPU计算SDK 4.0和microsoft VC ++ 2010 express

编程入门 行业动态 更新时间:2024-10-10 07:26:44
本文介绍了简单的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

本文发布于:2023-06-02 00:59:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/430958.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:简单   硬件   程序   GPU   CUDA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!