I was recently trying to run a piece of code on a gpu that works fine on my cpu when I received the following error:
Buid Log:
Internal error: Link failed.
Make sure the system setup is correct.
Has anyone else received this error or know where it comes from?
Thanks!
I was able to fix this error. Turns out to be a problem with << operators.
Originally posted by: twiig I was recently trying to run a piece of code on a gpu that works fine on my cpu when I received the following error:
Buid Log: Internal error: Link failed. Make sure the system setup is correct.
Has anyone else received this error or know where it comes from?
Thanks!
Please post your kernel code which shows Link failed error so that we can fix in upcoming releases.
int bits = ((nextT[0] < nextT[1]) << 2) + ((nextT[0] < nextT[2]) << 1) + (nextT[1] < nextT[2]);
int cmpToAxis[] = {2, 1, 2, 1, 2, 2, 0, 0};
int stepAxis = cmpToAxis[bits];
this is the code that was causing the problems. I could have a problem with missing something from the OpenCL spec though.
Originally posted by: twiig int bits = ((nextT[0] < nextT[1]) << 2) + ((nextT[0] < nextT[2]) << 1) + (nextT[1] < nextT[2]);
int cmpToAxis[] = {2, 1, 2, 1, 2, 2, 0, 0};
int stepAxis = cmpToAxis[bits];
this is the code that was causing the problems. I could have a problem with missing something from the OpenCL spec though.
what is the datatype of nextT?
twiig,
I tried running your code(with nextT as uint*) and did not get any issues.
Which datatype is your nextT?