i’m beginner in cuda c. i’m implementing iterative method of equation solving and using CUSPARSE. could someone help me with advice : what could be reason that kernel which should change the value of the variable allocated on device doesn’t affect on it? the variable is sent in argument list. i think the kernel is simply not executed.
Without seeing code it could be any number of reasons. But assuming that the kernel is not executed at all is a hot one. Check error codesto find out. Check all Cuda calls, the error will probably be returned by the first memcpy back to the host as the kernel is executed asynchronously.
thank you for your soon reply. i minimized the code but it still doesn’t work. would you look at the attached code please? i tried to test with the simplest SetA kernel which is also not launched, but it was working with the other variable. i get only zeros (i guess piece of results from previous runs) and “no error”. ept_kernel.cu (231 Bytes) ept_main.cu (2.39 KB)
The argument to set compute capability 2.0 is [font=“Courier New”]-arch=sm_20[/font] (or [font=“Courier New”]-arch=compute_20[/font]), not [font=“Courier New”]-arch=20[/font].