GEFORCE GTX 465 NVIDIA Graphics CARD
OPENSUSE 11.4
PENTIUM CORE 2 DUO 64 Bit Processor.
I’m currently working on a Stereo Vision Algorithm. The basic steps are
Upload the data
Perform the computation
Download the result
after downloading the result, I’m finding that the result is just “filled” with zeros.
So I’ve written a small snippet which allocates an array of size equal to the number of threads. Using memset(), i’m setting all the entries to “0”. In CUDA kernel, each thread just places it’s ID in the array location indexed by ID.
in other words, a thread with ID = “N” does this
array[N] = N;
But after downloading, the array is just filled with zeroes.
Please let me know, what could the possible cause.
Thanks for trying out the test program. I was expecting that it would return something like that.
What this means is the following:
The test program cannot find: nvcuda.dll
The test program simply assumes that this is somewhere on the environment path.
Perhaps you are using a secured version of Windows 7 which does not allow loading libraries with just “nvcuda.dll”.
The reason for this refusal is because of the “LoadLibrary” exploit/vunerability which exists on all windows versions.
If a hacker/attacker/virus/trojan would be another nvcuda.dll somewhere in the environment path then there is a chance that for example my program would load the fake nvcuda.dll.
And then the hacker can do anything he wants from nvcuda.dll.
Yesterday my system was automatically patched/updated by Microsoft’s Windows Update, it has installed 3 or so new api’s for loading libraries.
I have not yet installed service pack 1 so I don’t know if Windows 7 service pack 1 behaves differently.
So bottom line is:
As application developer I still have no idea how to load libraries “safely”. (It’s also kinda annoying having to change the way I do it and everybody else on the face of the planet External Image :) ← more research required and spending time on it External Image)
I suspect this is what might be going on on your system.
Other explanation could be:
The drivers were not installed properly or your system might have environment settings/path settings screwed up (unlikely).
Thanks for the reply. You were right, it was driver problem. I’ve installed the latest driver and the program in now detecting the hardware successfully.