OpenCL binaries produced by openclc do not work with AMD 5xxx/6xxx GPUs

Originator:timofey.chistyakov
Number:rdar://11611005 Date Originated:06/07/2012
Status:Open Resolved:
Product:Mac OS X Product Version:10.7.4
Classification:Serious bug Reproducible:always
 
Summary:

On a system with OSX 10.7.4 and AMD 5xxx/6xxx GPU, invoking clBuildProgram for a program created using binary produced by openclc results in CL_BUILD_PROGRAM_FAILURE with 'Invalid ALLOCA record' in the build log.


Steps to Reproduce:

On a system with AMD 5xxx/6xxx GPU installed running OSX 10.7.4:

1. Download Apple sample code for OpenCL offline compilation:
http://developer.apple.com/library/mac/#samplecode/OpenCLOfflineCompilation/Introduction/Intro.html
2. Compile the code according to Readme.txt
3. Execute ./test


Expected Results:
'Validation successful.' must be printed.


Actual Results:
Errors -11 and then -45 are reported


Regression:
this worked correctly in 10.7.0-10.7.3

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!