From e11d0a712d1157c0eaaf2be5705faea00a73f44e Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 17 Aug 2015 10:48:55 -0400 Subject: [PATCH] P4 to Git Change 1181062 by rili@rili_opencl_stg on 2015/08/17 10:39:25 EPR #419313 - Check internal kernel in right palce Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#292 edit --- rocclr/runtime/device/gpu/gpukernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp index 2e9c8446ad..da6a8b5f17 100644 --- a/rocclr/runtime/device/gpu/gpukernel.cpp +++ b/rocclr/runtime/device/gpu/gpukernel.cpp @@ -3605,11 +3605,11 @@ HSAILKernel::init(amd::hsa::loader::Symbol *sym, bool finalize) } acl_error error = ACL_SUCCESS; std::string openClKernelName = openclMangledName(name()); + flags_.internalKernel_ = (compileOptions_.find("-cl-internal-kernel") != + std::string::npos) ? true: false; //compile kernel down to ISA if (finalize) { std::string options(compileOptions_.c_str()); - flags_.internalKernel_ = (compileOptions_.find("-cl-internal-kernel") != - std::string::npos) ? true: false; options.append(" -just-kernel="); options.append(openClKernelName.c_str()); // Append an option so that we can selectively enable a SCOption on CZ