Hi,
I am new to cuda and decided to dive right in with cuDNN as i require it for my master project. I am simply trying to run the following cuDNN program for testing:
#include <iostream>
#include "cudnn.h"
using namespace std;
int main(int argc, char const *argv[])
{
cout << "hello cuda" << endl;
cudnnStatus_t status;
cudnnHandle_t handle;
status = cudnnCreate(&handle);
cout << "status " << status << endl;
cudnnDestroy(handle);
return 0;
}
And i compile the program using the following command:
nvcc -I ./include -I /usr/local/cuda-6.5/include -L ./lib ./main.cpp -L /usr/local/cuda-6.5/lib64/ -lcudnn -lcuda -lcudart -o prog
The lib folder contains the cuDNN lib’s and the include folder contains cudnn.h.
When running the compiled code i get:
hello cuda
status 6
I am operating on a remote university machine with a working cuda 6.5 toolkit, however i do not know which NVIDIA card is in the machine.
Might anyone know why i get the 6 status signal failure?