From d252efbe9f4c1013ad353ecabdfbe4b64ab7c854 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 14 Aug 2015 11:36:12 -0400 Subject: [PATCH] P4 to Git Change 1180506 by yaxunl@yaxunl_stg_win50 on 2015/08/14 11:18:00 ECR #354633 - SPIR-V: Add clCreateProgramWithIL API to CL 2.0. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.def.in#14 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/amdocl.map.in#17 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd.cpp#23 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_icd_amd.h#16 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_program.cpp#35 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl.h#20 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/icd/icd_dispatch.c#27 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/icd/icd_dispatch.h#22 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#31 edit [ROCm/clr commit: b9d5051b7205152ba62cbc6bef04e1ddc157b720] --- projects/clr/rocclr/runtime/platform/program.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/platform/program.hpp b/projects/clr/rocclr/runtime/platform/program.hpp index b15defd7cc..9d8e5c0f63 100644 --- a/projects/clr/rocclr/runtime/platform/program.hpp +++ b/projects/clr/rocclr/runtime/platform/program.hpp @@ -81,6 +81,7 @@ private: SharedReference context_; std::string sourceCode_; //!< Strings that make up the source code + bool isIL_; //!< The binary image is IL devicebinary_t binary_; //!< The binary image, provided by the app symbols_t* symbolTable_; //!< The program's kernels symbol table std::string kernelNames_; //!< The program kernel names @@ -105,9 +106,10 @@ protected: public: //! Construct a new program to be compiled from the given source code. - Program(Context& context, const std::string& sourceCode) + Program(Context& context, const std::string& sourceCode, bool isIL = false) : context_(context) , sourceCode_(sourceCode) + , isIL_(isIL) , symbolTable_(NULL) , programLog_() , firstBuildNoOpt_(true) @@ -116,6 +118,7 @@ public: //! Construct a new program associated with a context. Program(Context& context) : context_(context) + , isIL_(false) , symbolTable_(NULL) { }