没有启用 CUDA 的 GPU 的 CUDA
我想在我的 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
直接回答:@Andrey 是正确的,新的工具包/API (v3)没有有模拟器。 但是,您可以考虑使用 mCUDA 来编译内核CPU 目标 - 请注意,如果您的最终目标是 GPU,这可能无法帮助您调整代码,而且它目前仅适用于 Linux。我建议您查看 gpuocelot 这是一个更通用的模拟器。 (不确定是否在 Windows 上进行了测试)
旁白:这是我对 ATI 的抱怨,除非安装了 ATI 卡,否则您无法使用他们的系统进行开发。 nVidia 没有这样的要求。您完全可以下载并安装工具包和 SDK。然而,正如@Andrey 提到的,他们已经删除了模拟器。因此,如果您确实想运行 CUDA 内核,则确实需要 nVidia GPU 除非您使用 mCUDA 编译内核以在CPU上运行。
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: 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 v2中有模拟模式,但仍然需要安装硬件,否则甚至无法安装。当前的 CUDA v3 中没有模拟器,仅此而已。您应该检查支持 CUDA 的设备列表并选择最便宜的。不会太贵(~100$)
they does not. they used to have emulation mode in CUDA v2, but still it required hardware to be installed, otherwise it will not even install. in current CUDA v3 there is no emulator, that's it. You should check the list of CUDA enabled devices and pick the cheapest. It will be not too expensive (~100$)
尝试在 Google 上搜索 (pdf)“使用详细的 GPU 模拟器分析 CUDA 工作负载”,Ali Bakhoda(等人)Univ Brit Columbia 或他们的 (ppt/pdf)“GPGPU-Sim:用于大规模多线程处理器研究的性能模拟器”。
我不确定它是否仍然是活跃的研究。我最近才找到这篇论文。
Try Googling for (pdf) "Analysing CUDA Workloads Using a Detailed GPU Simulator", Ali Bakhoda, (et al) Univ Brit Colombia, or their (ppt/pdf) "GPGPU-Sim: A Performance Simulator for Masively Multithreaded Processor Research".
I'm not sure if it is still active research. I just found the paper recently.
我在配备 intel gpu 的笔记本电脑上使用 2.3 版完成此操作,但我需要 g++-4.3。
http://forums.nvidia.com/index.php?showtopic=102548
我放弃了在较新版本的 ubuntu 中安装 g++-4.3 的尝试,这并不好笑。如果你比我聪明并且知道如何安装 g++-4.3,那么即使你不安装,你也可以安装 CUDA v2.3有 NVIDIA 硬件。我使用的是配备 Intel GPU 的华硕笔记本电脑。
这是我配置的项目(如果 makefile 有用):
http:// /preann.svn.sourceforge.net/viewvc/preann/
如果你成功了,我会很感激关于如何使用较新的编译器在 debian/ubuntu 中安装 g++-4.3 的一些指导,而不破坏一切。 ;)
I did it with version 2.3 on my laptop with intel gpu, but I needed g++-4.3.
http://forums.nvidia.com/index.php?showtopic=102548
I gave up trying to install g++-4.3 in newer versions of ubuntu, it wasn't funny.If you're smarter than me and know how to install g++-4.3, then you can install CUDA v2.3 EVEN IF YOU DON'T HAVE NVIDIA HARDWARE. I'm on an Asus laptop with Intel GPU.
This is the project for which I had it configured (in case the makefile is useful):
http://preann.svn.sourceforge.net/viewvc/preann/
If you make it, I would appreciate an little guidance on how to install g++-4.3 in a debian/ubuntu with a newer compiler without breaking everything. ;)