如何在Windows上模拟CUDA [英] How to emulate CUDA on windows

查看:178
本文介绍了如何在Windows上模拟CUDA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法,我可以测试CUDA示例和代码从没有NVIDIA显卡的计算机?
我使用Windows和最新版本的CUDA。

is there any way I can test the CUDA samples and codes from a computer with no NVIDIA graphic card? I am using Windows and the latest version of CUDA.

推荐答案

有几种可能性:


  1. 使用旧版本的CUDA,它有内置的模拟器(2.3可以肯定)。

  2. 使用OpenCL,它可以在CPU上运行(虽然不是使用nVidia SDK,你必须安装AMD或Intel OpenCL实现(AMD在Intel CPU上工作正常,btw))。根据我的经验,OpenCL通常比CUDA慢。

  3. 有Ocelot模拟器的windows分支: http://code.google.com/p/gpuocelot/

  1. Use older version of CUDA, which has built-in emulator (2.3 has it for sure). Emulator is far from good, and you won't have features from latest CUDA releases.
  2. Use OpenCL, it can run on CPUs (though not with nVidia SDK, you will have to install either AMD or Intel OpenCL implementation (AMD works fine on Intel CPUs, btw)). In my experience, OpenCL is usually slightly slower than CUDA.
  3. There is windows branch of Ocelot emulator: http://code.google.com/p/gpuocelot/. I haven't tried it, though.

但是,我建议购买一些支持CUDA的卡。 8xxx或9xxx系列是确定和真的便宜。仿真将允许您获得GPGPU编程的一些基本技能,但是当您编写一些真实应用程序时,它是无用的,因为它不允许您调试和调整性能。

However, I would recommend buying some CUDA-capable card. 8xxx or 9xxx series is ok and really cheap. Emulation would allow you to get some basic skills of GPGPU programming, but is useless when you write some real-world application since it doesn't allow you to debug and tune performance.

这篇关于如何在Windows上模拟CUDA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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