From 4fd51c5805239b01f711c26767db95bd34454703 Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 8 Jul 2015 17:07:41 -0400
Subject: [PATCH] P4 to Git Change 1168792 by rili@rili_opencl_stg on
2015/07/08 17:02:22
EPR #419313 - Fix the wrong check for string.find
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#287 edit
---
rocclr/runtime/device/gpu/gpukernel.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpukernel.cpp b/rocclr/runtime/device/gpu/gpukernel.cpp
index 35102a85c4..e2d61d0982 100644
--- a/rocclr/runtime/device/gpu/gpukernel.cpp
+++ b/rocclr/runtime/device/gpu/gpukernel.cpp
@@ -3561,7 +3561,8 @@ HSAILKernel::init(bool finalize)
//compile kernel down to ISA
if (finalize) {
std::string options(compileOptions_.c_str());
- flags_.internalKernel_ = (compileOptions_.find("-cl-internal-kernel") != 0) ? true: false;
+ 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