CUDA without CUDA enabled gpu [duplicate]
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.
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.
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$)
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.
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. ;)
精彩评论