From acb486ffec6770511c4ceee7b957c0d48d9d9e7a Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 26 Sep 2019 17:47:32 -0400
Subject: [PATCH] P4 to Git Change 2005049 by skudchad@skudchad_rocm on
2019/09/26 17:24:59
SWDEV-199293 - HIP_RTC inprocess implementation.
ReviewBoardURL = http://ocltc.amd.com/reviews/r/18014/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#41 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_rtc.cpp#5 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hiprtc_internal.hpp#1 add
... //depot/stg/opencl/drivers/opencl/runtime/platform/program.hpp#49 edit
[ROCm/clr commit: 167b7eb22d814917d96c71641e4a166ff8bddf1c]
---
projects/clr/rocclr/runtime/platform/program.hpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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_; }