Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to emulate CUDA on windows

Tags:

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.

like image 617
lezebulon Avatar asked Sep 06 '11 15:09

lezebulon


People also ask

Can you emulate CUDA?

You can check also gpuocelot project which is a true emulator in the sense that PTX (bytecode in which CUDA code is converted to) will be emulated.

Can I run CUDA online?

Most online CUDA classes use AWS GPU instances, which are not hard to setup. I may be very biased, but I do recommend CUDA over OpenCL for a number of reasons; 2/3 of GPU-related academic papers use CUDA over OpenCL. Most GPU based and hybrid CPU/GPU supercomputers use NVIDIA GPUs usually with CUDA.


1 Answers

There are several possibilities:

  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.

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.

like image 120
aland Avatar answered Oct 28 '22 13:10

aland