cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

twiig
Journeyman III

link error

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!

0 Likes
5 Replies
twiig
Journeyman III

I was able to fix this error.  Turns out to be a problem with << operators.

0 Likes
genaganna
Journeyman III

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.

0 Likes

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.

0 Likes

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?

0 Likes

twiig,

I tried running your code(with nextT as uint*) and did not get any issues.

Which datatype is your nextT?

0 Likes