views:

188

answers:

3

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.

+1  A: 

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$)

Andrey
Actually you can install the toolkit without having a CUDA enabled device. True that you won't be able to do anything for actually running your projects, but you would be able to write and compile your code. (True as of CUDA 3.1 under Windows and Linux)
Ian Lee
@Ian Lee you might be right about installing, but as far as i remember CUDA checks for CUDA compatible devise driver installed, and if you don't have device then you can't install.
Andrey
The cheapest card is probably the "GeForce 8400 GS" which on newegg is selling for $39 with 512MB of Ram or $30 with 128MB. If you can spare a little, I'd get either a 1GB GTS 450 (~$120) or a 1GB GTS 460 (~$220).
M. Tibbits
A: 

so I just got CUDA V2 setup, it runs some code. I just have another question. I want to include cutil.h. I know where it is. But i don't know how to do it on linux.

small_potato
Ask that as a new *question* instead of posting "answers".
Georg Fritzsche
+1  A: 

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.

M. Tibbits