Assertion 'deviceProp.minor'

Hi,

When I run my cpp code, it returns me this error:

Starting GPU-SNN Simulations …
Device with maximum GFLOPs is : 0

Device 0: “GeForce GTX 460 SE”
gpusnn2: snn_gpu.cu:1432: void CpuSNN::allocate(): Assertion `deviceProp.minor >= 3’ failed.
Aborted

What am I doing wrong? Kindly let me know. Thank you.

Your code seems to have [font=“Courier New”]assert(deviceProp.minor >= 3);[/font] on line 1432, which however isn’t true for the GTX 460 SE, which is compute capability 2.1.

If your intent was to check for double precision capability, you should replace that check with [font=“Courier New”]assert((deviceProp.major ==1 && deviceProp.minor >= 3) || deviceProp.major >= 2);[/font]

Hi,

After making the modifications you suggested, it is showing the following error:

Starting GPU-SNN Simulations …
Device with maximum GFLOPs is : 0

Device 0: “GeForce GTX 460 SE”
Cuda error in file ‘snn_gpu.cu’ in line 1453 : invalid argument.

If needed, I can send you this snn_gpu.cu file. Kindly let me know. And what does deviceProp.minor or deviceProp.major do? How is it related to computing capability of GPU? Thank you.