Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run CUDA without a GPU using a software implementation?

Tags:

cuda

nvidia

My laptop doesn't have a nVidia graphic cards, and I want to work on CUDA. The website says that CUDA can be used in emulation mode on non-cuda hardware too. But when I tried installing CUDA drivers downloaded from their website, it gives an error "The nvidia setup couldn't locate any drivers that are compatible with your current hardware. Setup will now exit".

Also when I tried to run sample codes from SDK in Visual studio 2008, I'm getting an error that .obj file is not found.

like image 514
emkrish Avatar asked Nov 18 '09 05:11

emkrish


People also ask

How can I run CUDA without GPU?

If you want to run a CUDA program without a GPU, there are a few options. One is to use an emulator, such as the CUDA Emulator included in the CUDA toolkit. This will allow you to run CUDA programs on your CPU, but will be much slower than running on a GPU. Another option is to use a CPU that supports CUDA.

Can you use CUDA without Nvidia GPU?

You can run CUDA codes even if you dont have dedicated Nvidia GPU card in your laptop or computer using Google Colab.

Can I run CUDA code on CPU?

A single source tree of CUDA code can support applications that run exclusively on conventional x86 processors, exclusively on GPU hardware, or as hybrid applications that simultaneously use all the CPU and GPU devices in a system to achieve maximal performance.


2 Answers

The easiest way to get started with GPU development is to get a cheap (for example GTX285) GPU and a desktop computer (obviously since u can't change the GPU in your laptop).

There are a few research projects on getting CUDA kernels to work efficiently on CPUs as well as on FPGAs (Google wen mei hwu and see his research projects) however if you want to learn CUDA this is not for you, as said above the easiest way is to get some cheap hardware.

like image 144
Nils Avatar answered Sep 22 '22 05:09

Nils


Have you downloaded the CUDA toolkit? You'll need to download the toolkit (which includes the compiler and the runtime library) and the SDK. When you are building the SDK samples be sure to change the configuration to "EmuDebug" or "EmuRelease".

like image 37
Tom Avatar answered Sep 20 '22 05:09

Tom