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