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


[ROCm/clr commit: 769ff6d3f8]
This commit is contained in:
foreman
2016-03-21 17:51:06 -04:00
rodzic 1f4061ccbc
commit 2630e256f8
@@ -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_; }