From fb2c9b41161bbb0412eaab5e42cd3c0e30bdd5a7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 3 Jan 2019 11:02:36 -0500
Subject: [PATCH] P4 to Git Change 1725623 by gandryey@gera-w8 on 2019/01/03
10:32:08
SWDEV-79445 - OCL generic changes and code clean-up
- Chnage the scope of SchedulerSourceCode variable
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#109 edit
[ROCm/clr commit: 63a1a63a7584f35eb6669b6d068cc51a40c3ea7c]
---
projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
index ec5649d1e1..de9b53c9c1 100644
--- a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -645,8 +645,8 @@ bool Device::create() {
const char* scheduler = nullptr;
#if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY)
+ std::string sch = SchedulerSourceCode;
if (settings().useLightning_) {
- std::string sch = SchedulerSourceCode;
scheduler = sch.c_str();
}
// create compilation object with cache support