diff --git a/projects/clr/rocclr/runtime/platform/program.hpp b/projects/clr/rocclr/runtime/platform/program.hpp index b459e45409..4c5c190adc 100644 --- a/projects/clr/rocclr/runtime/platform/program.hpp +++ b/projects/clr/rocclr/runtime/platform/program.hpp @@ -73,7 +73,8 @@ class Program : public RuntimeObject { Binary = 0, OpenCL_C, SPIRV, - Assembly + Assembly, + HIP }; typedef bool(CL_CALLBACK* VarInfoCallback)(cl_program, std::string, void**, size_t*); @@ -139,6 +140,9 @@ class Program : public RuntimeObject { //! Return the program source code. const std::string& sourceCode() const { return sourceCode_; } + //! Append to source code. + void appendToSource(const char* newCode) { sourceCode_.append(newCode); } + //! Return the program log. const std::string& programLog() const { return programLog_; }