fcfc94d0b5dd9f9dc4d9fb6f7837c2739ddc6530
ECR #333753 - RT: Bug 10185 fix [Bug] "Failure in 1.2 conformance sub-test 'program_binary_type' of 'compiler' and sub-test 'binary_create' of 'api' when forced to run in HSAIL path". P.S. Failure also occurs in 2.0 conformance above-stated tests. [Problem] HSAIL text is inserted by Compiler Lib into the BIF as a symbol of .cg section, but RT extracts it as a whole section. As a result in the extracted bits another .cg sections symbol __Loader_Map is also presented in the beginning and with trailing zeroes. This leads to cropping the whole HSAIL text while casting to string; then RT silently doesn't perform kernels' finalization cause unable to find any kernel name in the extracted hsail. Finally the binary produced based on clCreateProgramWithBinary has the different sections/symbols order from the binary produced based on clCreateProgramWithSource. [Solution] Extract Symbol __HSAIL_main_text instead of the section aclCODEGEN contains it. [Testing] smoke_clang, pre check-in [Reviewers] German Andryeyev, Brian Sumner Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#172 edit
Description
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Other
1.1%