Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'CUDALink Internal Error' topicStudent Support Forum > General > "CUDALink Internal Error"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'CUDALink Internal Error')
Author Date Posted
CUDALink Internal Error Garrett 09/26/11 12:54pm
Re: CUDALink Internal Error Forum Modera... 09/28/11 12:43pm
Next Comment >Help | Reply To Topic