From f4b3681c0fb40feaea9e9d4dffdd24ad766a5944 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 14 Jul 2014 18:25:38 -0400
Subject: [PATCH] P4 to Git Change 1055020 by asalmanp@asalmanp-opencl-stg1 on
2014/07/14 18:08:09
EPR #394069 - [CQE OCL][ISV][QR][G] Debugger CAL path no longer works due to OCL CL # 1003498. Fix ACL path to support debugger
ReviewBoardURL=http://ocltc.amd.com/reviews/r/5245/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpubinary.cpp#57 edit
[ROCm/clr commit: 7ca4c75217650e8ee631182ce3daca1c9b98f9a7]
---
projects/clr/rocclr/runtime/device/gpu/gpubinary.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpubinary.cpp b/projects/clr/rocclr/runtime/device/gpu/gpubinary.cpp
index bd380a1d03..37ead10c09 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpubinary.cpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpubinary.cpp
@@ -183,8 +183,8 @@ ClBinary::loadKernels(NullProgram& program, bool* hasRecompiled)
}
}
+ std::string programil;
if (usedebugil) {
- std::string programil;
char *section;
size_t sz;
@@ -298,7 +298,7 @@ ClBinary::loadKernels(NullProgram& program, bool* hasRecompiled)
// TODO: global data recompilation as well.
// 1) parse IL; 2) parse metadata to set up kernel header
size_t pos;
- if (!program.findAllILFuncs(ilSource, pos)) {
+ if (!program.findAllILFuncs((programil.size() ? programil : ilSource), pos)) {
program.freeAllILFuncs();
return false;
}