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: 167b7eb22d]
This commit is contained in:
@@ -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_; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user