Hello, i’m fairly new to GPU programming, and i’ve encountered an unhandled exception while using cuSPARSE.
Exception returned bu Visual Studio:
Unhandled exception at 0x00007FFFFCC2B780 (cusparse64_91.dll) in GPGPU_Tests.exe : 0xC0000005 : acces violation when reading address 0x0000000000000000.
(roughly translated)
That looks like a non initialized pointer, but i’ve been turning in circle in my code, and it looks like everyting is initialized.
Here’s the code:
https://paste.ofcode.org/322aM9RczkmDHY5MvCFEFaW
Exceptionis thrown at line 429:
“cusparseStat = cusparseScsrmv_mp(…);”
Here’s what my memory looks like:
https://postimg.org/image/4ggeo2czx/
Hoping it isn’t some newbie error on my end, but it probably is :)
Thanks in advance for any time spent on that!
PS: Solved, I was being stupid, instead of giving a pointer to the value 0 I directly fed 0, which led to adress 0x00000000000000…