I’ve been having some issues using the division operator “/” within my CUDA kernel, and I couldn’t find another post discussing the issue. Basically, the problem is that using the operator within any line of code within my kernel will cause the kernel to be terminated at that line when run. This behavior only popped up after switching from CUDA runtime 3.2 with VS 2008 to CUDA runtime 4.0 with VS 2010.
Am I doing something wrong? Here are a couple examples of lines that will cause the kernel to terminate.
int variable = (double) array[number] / number;
cos(number * number / number)
I actually have yet to try using the division operator within strictly integer operations, as these two are within double operations. So ill try that and see if that works, but if it does, then what operator do I use for division for double operations.
Thanks in advance.