for a lab we're suppose to work on I need to set up Cuda with Visual Studio 2012 and run some tests. What I've done:
- Install Cuda 5.5 + Edit build configurations.
- Visual Studio 2012 is installed.
- In the project, right click -> Build Configurations and choose Cuda 5.5
- Project -> Properties -> VC++ directories: Set include/lib directories from Cuda directory.
Now, I was under the impression that after doing all this I should have no need to put "#include cudafiles" in my classes, they should be automatically imported, no?
I'm not getting the following as undefined:
- cudaFree
- cudaError
- HANDLE_NULL
The following as 'device is not a type name'
__device__
And __global__
has no storage class or identifier.
I've spent hours and hours and hours trying to get this to work, following tutorials online, but I just can't get it to run properly. The code I'm using can be found here:
You can see in those files only 'lock.h' and 'book.h' are being included. I am including both of those.
Also, I am very new to C and VS so I may be leaving out a lot of important info.. please advice me to anything you may need to help assess this!! Thanks!