P4 to Git Change 1445200 by skeely@skeely_HSA_linux on 2017/08/09 15:59:56

SWDEV-124331 - Follow HSA loader spec.

	Extend lifetime of loaded ELF and code reader to the lifetime of the loaded executable.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#69 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#27 edit
This commit is contained in:
foreman
2017-08-09 16:24:27 -04:00
parent ee24635439
commit 2211f5f559
2 changed files with 50 additions and 43 deletions
+2 -1
View File
@@ -155,7 +155,8 @@ class HSAILProgram : public device::Program {
bool hasGlobalStores_; //!< program has writable program scope variables
/* HSA executable */
hsa_executable_t hsaExecutable_; //!< Handle to HSA executable
hsa_executable_t hsaExecutable_; //!< Handle to HSA executable
hsa_code_object_reader_t hsaCodeObjectReader_; //!< Handle to HSA code reader
#if defined(WITH_LIGHTNING_COMPILER)
CodeObjectMD* metadata_; //!< Runtime metadata