| Author |
Comment/Response |
Garrett
|
09/26/11 12:54pm
I've been running into this really pesky line of code and I'm hoping someone could shed some light on what I'm doing wrong. I have an if statement set up that sees if one float is larger than another float. The CUDA kernel compiles right, but when I run it from Mathematica and it gets to the if statement, it gives me a "CUDALink experienced an internal error" output and I have to restart Mathematica if I want anything to work again. Are there some special rules about using if statements in CUDALink? Here is the code:
if(sqrt(startstart)<Diameter)
{
Result[0]=2;
return;
}
URL: , |
|