CUDA没有CUDA启用gpu [英] CUDA without CUDA enabled gpu

查看:662
本文介绍了CUDA没有CUDA启用gpu的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的ubunbu 10.04上设置一个CUDA模拟器,因为我没有硬件。有人可以提供一些有价值的指示。我认为Nvidia提供一个模拟器,我该如何设置它。到目前为止我不在乎性能,如果它很慢。感谢。

I want to setup a CUDA emulator on my ubunbu 10.04, since I don't have the hardware. Can someone provides some valuable instructions. I think Nvidia does provide an emulator, how can i set it up. so far I don't care about performance, if it's slow. Thanks.

推荐答案

直接回答: @Andrey是正确的,新的工具包/ 没有有一个模拟器。 ,您可以考虑使用 mCUDA 编译内核一个CPU目标 - 请注意,如果您的最终目标是gpu,并且目前仅适用于Linux,这可能无法帮助您调整代码。我建议您检查 gpuocelot ,这是一个更通用的模拟器。 (不知道是否已在Windows上测试)

Direct Answer: @Andrey is correct, the new toolkit / API (v3) does not have an emulator. However, you could consider using mCUDA which compiles the kernel for a CPU target -- note that this may not help you tune your code if your ultimate target is a gpu and also, it is only currently available for Linux. I would recommend checking out gpuocelot which is a more general emulator. (Not sure if it's been tested on Windows)

Aside:这是我对ATI的抱怨,您已安装ATI卡。 nVidia没有这样的要求。您可以绝对下载并安装工具包和SDK。然而,如@Andrey所说,他们已经删除了模拟器。因此,如果你真的想运行一个CUDA内核,你需要一个nVidia GPU ,除非 mCUDA 编译要在 CPU 上运行的内核。

Aside: This is my gripe with ATI, you can't develop with their system unless you have an ATI card installed. nVidia has no such requirement. You can absolutely download and install the toolkit and SDK. However, as @Andrey mentions, they have removed the emulator. So if you actually want to run a CUDA kernel, you do need an nVidia GPU unless you use mCUDA to compile the kernel to run on the CPU.

这篇关于CUDA没有CUDA启用gpu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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