English 中文(简体)
How to run CUDA without a GPU using a software implementation?
原标题:
  • 时间:2009-11-18 05:00:24
  •  标签:
  • 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.

问题回答

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.

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".

Nowadays we have OpenCL. It s works on almost every hardware you can have: CPUs, GPUs (nvidia or amd), APUs, FPGAs etc.

(I reached here searching for CUDA compilation in a non nvidia hardware - for comparison purposes with OpenCL - but apparently it s still works on nvidia only. Sad :/).





相关问题
Why won t OpenCV compile in NVCC?

I am trying to integrate CUDA and openCV in a project. Problem is openCV won t compile when NVCC is used, while a normal c++ project compiles just fine. This seems odd to me, as I thought NVCC ...

error in CUDA compilation

I m getting this error while trying to run sample codes in CUDA SDK. I have CUDA 2.3 and Visual studio 2008 LINK : fatal error LNK1181: cannot open input file cutil32D.lib Any pointers how to ...

CUDA Memory Allocation accessible for both host and device

I m trying to figure out a way to allocate a block of memory that is accessible by both the host (CPU) and device (GPU). Other than using cudaHostAlloc() function to allocate page-locked memory that ...

热门标签