simple CUDA program execution without GPU hardware using NVIDIA GPU computing SDK 4.0 and microsoft VC++ 2010 express

僤鯓⒐⒋嵵緔 提交于 2019-12-23 19:18:24

问题


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:

  • 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.
    

I'm unsure if I have installed all the required software, if something else is needed, or if I need to use another version of the product.


回答1:


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.

The CUDA Toolkit can be found here CUDA Toolkit 4.0

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.



来源:https://stackoverflow.com/questions/8410419/simple-cuda-program-execution-without-gpu-hardware-using-nvidia-gpu-computing-sd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!