Hi,
I am new to CUDA and want to install it on my laptop. I have downloaded the necessary stuff, however having problems making the examples in the SDK directory. My questions are as follows
1)Do I need to install the Nvidia graphics drivers (ie step 1) on the guide, If I am interested in running “ONLY” in emulator mode? I don’t have the necessary hardware on my laptop
2)I have installed the cuda toolkit as follows
/home/cuda-2.3/cuda
This to me looks like it has built fine
I then installed the SDK in /home/cuda-2.3/cuda/
My attempt at making the deviceQuery fails with the following.
deviceQuery.cpp:19:18: error: cuda.h: No such file or directory
deviceQuery.cpp:20:30: error: cuda_runtime_api.h: No such file or directory
deviceQuery.cpp: In function ‘int main(int, char**)’:
deviceQuery.cpp:35: error: ‘cudaGetDeviceCount’ was not declared in this scope
deviceQuery.cpp:42: error: ‘cudaDeviceProp’ was not declared in this scope
deviceQuery.cpp:42: error: expected `;’ before ‘deviceProp’
deviceQuery.cpp:43: error: ‘deviceProp’ was not declared in this scope
deviceQuery.cpp:43: error: ‘cudaGetDeviceProperties’ was not declared in this scope
I confirm that my $PATH and $LD_LIBRARY_PATH are pointing to where cuda is installed. Please note that I have not carried out the first step either (installing the nvidia drivers).
To me it looks like I am making some elementary mistake, but unable to figure out what this is - can some please give some pointers?