cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

arsenm
Adept III

Error when replacing IL in binary

I'm trying to replace the .amdil section in the binary, but I get an error when I try to load it ("Internal error: Input OpenCL binary is not for the target!").

I generated a binary (on Cayman) without the .llvmir or executable sections, and then used objcopy to replace the IL section (kind of like shown here). I don't see where it would get this from. The device type should be the same. In the OpenCL C generated kernel, there is a block of comments that look like ";device:cayman". Does it look for these comments or something? I tried sticking in the same block of comments from a reference kernel, but I get the same error.

 

 

 

0 Likes
15 Replies