arsenm

Error when replacing IL in binary

Discussion created by arsenm on Aug 31, 2011
Latest reply on Dec 8, 2011 by MicahVillmow

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.

 

 

 

Outcomes