foreman 638d55b6be P4 to Git Change 1066332 by emankov@em-hsa-amd on 2014/08/14 11:51:05
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 section’s 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


[ROCm/clr commit: fcfc94d0b5]
2014-08-14 12:04:47 -04:00
S
Opis
No description provided
282 MiB
Languages
C++ 67.5%
C 20.6%
Python 6.6%
CMake 3.4%
Shell 0.6%
Pozostałe 1.1%