From 769ff6d3f886a4e4f3976807b17ff8032a52d152 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 21 Mar 2016 17:51:06 -0400
Subject: [PATCH] P4 to Git Change 1249491 by gandryey@gera-w8 on 2016/03/21
17:37:48
SWDEV-90408 - OpenCL runtime crashes when querying CL_PROGRAM_NUM_KERNELS on a program built with clCompileProgram
- The app attempts to get query before build/link call. Make sure symbols are available.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#39 edit
---
rocclr/runtime/platform/program.hpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rocclr/runtime/platform/program.hpp b/rocclr/runtime/platform/program.hpp
index 33f48a25bf..aa7638c59b 100644
--- a/rocclr/runtime/platform/program.hpp
+++ b/rocclr/runtime/platform/program.hpp
@@ -131,6 +131,9 @@ public:
//! Return the symbols for this program.
const symbols_t& symbols() const { return *symbolTable_; }
+ //! Return the pointer to symbols for this program.
+ const symbols_t* symbolsPtr() const { return symbolTable_; }
+
//! Return the program source code.
const std::string& sourceCode() const { return sourceCode_; }