SWDEV-277566 - Add amd::Program::load interface

Skeleton implementation to allow change at HIP and OpenCL.

Change-Id: I70e69d33c6870cc96238b2f18010ace86d56147f


[ROCm/clr commit: b2116c2137]
This commit is contained in:
Jason Tang
2021-05-06 14:55:23 -04:00
کامیت شده توسط Jason Tang
والد a8e09cd69b
کامیت 7f71fd4036
2فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
@@ -621,6 +621,10 @@ int32_t Program::build(const std::vector<Device*>& devices, const char* options,
return retval;
}
bool Program::load(const std::vector<Device*>& devices) {
return true;
}
void Program::clear() {
// Destroy old programs if we have any
for (const auto& it : devicePrograms_) {
@@ -221,6 +221,9 @@ class Program : public RuntimeObject {
void(CL_CALLBACK* notifyFptr)(cl_program, void*) = NULL, void* data = NULL,
bool optionChangable = true, bool newDevProg = true);
//! Load the program. If devices is not specified, then load program for all devices.
bool load(const std::vector<Device*>& devices = {});
//! RTTI internal implementation
virtual ObjectType objectType() const { return ObjectTypeProgram; }