580eb5f852b74d3d0e17353fccca4ef89d0fbf0b
ECR #333753 - Compiler Lib/aoc2: AMD HSA Code Object Import feature Works only in case of whole compilation from the source CL to ISA. Doesn't work for -srctoir, -irtocg, -cgtoisa as meaningless. Importing occurs instead of finalization. To use offline by aoc2: aoc2 -hsacodeobject=<importing_code_object_filename> -cl-std=CL2.0 -march=hsail(-64) -mdevice=Bonaire <source_cl_filename> To use online by setting env: AMD_DEBUG_HSA_CODE_OBJECT_INPUT=<importing_code_object_filename> Misc: + fix a few aoc2 bugs & typos + readFile/writeFile functions duplication removal + std::getenv instead of :getenv (ToDo: :putenv -> std::system in separate change) + fix memory leak in hsail_be.cpp on CodeObject Testing: pre checin, ursa.pl -t complib -M hsacodeobject Reviewers: Nikolay Haustov, Brian Sumner http://ocltc.amd.com/reviews/r/8058/ Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/api/v0_8/acl.cpp#32 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#71 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/MDParser/Main.cxx#2 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/gpu/hsail_be.cpp#46 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/v0_8/libUtils.h#19 edit ... //depot/stg/opencl/drivers/opencl/compiler/tools/aoc2/aoc2.cpp#73 edit ... //depot/stg/opencl/drivers/opencl/tests/hsa/bin/test_driver.pl#14 edit ... //depot/stg/opencl/drivers/opencl/tests/hsa/src/complib/aoc2/hsacodeobject/hsacodeobject.1.cl#1 add ... //depot/stg/opencl/drivers/opencl/tests/hsa/src/complib/aoc2/hsacodeobject/hsacodeobject.cl#1 add ... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/complib.tlst#7 edit
Beskrivning
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Övrigt
1.1%