From ca9cb0986031beb809e57abab19e7affe2f97808 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 26 Oct 2015 11:49:00 -0400
Subject: [PATCH] P4 to Git Change 1203829 by emankov@em-hsa-amd on 2015/10/26
11:33:16
SWDEV-77584 - ORCA RT: Preparations for enabling HSAIL on OpenCL 1.2 by default. Set Blits to be always internal kernels.
[Synopsis] Option -cl-internal-kernel has not been always set for blits, which leads to difficulty/impossibility for their determination.
[Testing] pre check-in
[Reviewer] German Andryeyev
http://ocltc.amd.com/reviews/r/8799/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#187 edit
---
rocclr/runtime/device/device.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rocclr/runtime/device/device.cpp b/rocclr/runtime/device/device.cpp
index d9c7a1a2b2..ae07254ca2 100644
--- a/rocclr/runtime/device/device.cpp
+++ b/rocclr/runtime/device/device.cpp
@@ -134,12 +134,12 @@ Device::BlitProgram::create(amd::Device* device,
// Build all kernels
std::string opt = "-Wf,--force_disable_spir -fno-lib-no-inline "\
- "-fno-sc-keep-calls ";
+ "-fno-sc-keep-calls -cl-internal-kernel ";
if (extraOptions != NULL) {
opt += extraOptions;
}
if (!GPU_DUMP_BLIT_KERNELS) {
- opt += " -fno-enable-dump -cl-internal-kernel";
+ opt += " -fno-enable-dump";
}
if (CL_SUCCESS != program_->build(devices, opt.c_str(),
NULL, NULL, GPU_DUMP_BLIT_KERNELS)) {