From 675896e7540fcc71236d7948af6ae3f9df7a0902 Mon Sep 17 00:00:00 2001 From: "Zhuravlyov, Konstantin (x21446) MA" Date: Tue, 5 May 2015 08:29:40 -0500 Subject: [PATCH] ECR #333756 - Add support for relocations/offline global support in finalizer/loader Testing: precheckin (http://ocltc:8111/viewModification.html?modId=51121&personal=true&init=1&tab=vcsModificationBuilds) [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1147298] [ROCm/ROCR-Runtime commit: 20bed7ce7fec6e0dfe6cc51cb14a78a5be4ee2b9] --- projects/rocr-runtime/samples/common/hsa_base_util.cpp | 2 +- projects/rocr-runtime/samples/common/hsa_rsrc_factory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/samples/common/hsa_base_util.cpp b/projects/rocr-runtime/samples/common/hsa_base_util.cpp index 811b58d500..4f3faa4338 100644 --- a/projects/rocr-runtime/samples/common/hsa_base_util.cpp +++ b/projects/rocr-runtime/samples/common/hsa_base_util.cpp @@ -98,7 +98,7 @@ bool HSA_UTIL::HsaInit() // Get symbol handle. hsa_executable_symbol_t kernelSymbol; - err = hsa_executable_get_symbol(hsaExecutable, "", hsa_kernel_name, device, 0, &kernelSymbol); + err = hsa_executable_get_symbol(hsaExecutable, NULL, hsa_kernel_name, device, 0, &kernelSymbol); check("get symbol handle", err); // Get code handle. diff --git a/projects/rocr-runtime/samples/common/hsa_rsrc_factory.cpp b/projects/rocr-runtime/samples/common/hsa_rsrc_factory.cpp index efd4d39b3d..34f47c4f78 100755 --- a/projects/rocr-runtime/samples/common/hsa_rsrc_factory.cpp +++ b/projects/rocr-runtime/samples/common/hsa_rsrc_factory.cpp @@ -278,7 +278,7 @@ bool HsaRsrcFactory::LoadAndFinalize(AgentInfo *agent_info, // Get symbol handle. hsa_executable_symbol_t kernelSymbol; - status = hsa_executable_get_symbol(hsaExecutable, "", + status = hsa_executable_get_symbol(hsaExecutable, NULL, kernel_name, agent_info->dev_id, 0, &kernelSymbol); // Update output parameter