SWDEV-297294 - Make sure the binary ISA is compatible with the agent ISA

Change-Id: Idf86714d1a494d24faa665c9fede1e776ce253f1
这个提交包含在:
Jason Tang
2021-08-04 10:38:39 -04:00
提交者 Maneesh Gupta
父节点 3a7008cf07
当前提交 cb41710384
修改 2 个文件,包含 84 行新增57 行删除
+17 -1
查看文件
@@ -454,7 +454,7 @@ class Program : public amd::HeapObject {
char* executable[], size_t* executableSize);
//! Create the map for the kernel name and its metadata for fast access
bool createKernelMetadataMap();
bool createKernelMetadataMap(void* binary, size_t binSize);
#endif
bool trySubstObjFile(const char *SubstCfgFile,
@@ -468,4 +468,20 @@ class Program : public amd::HeapObject {
Program& operator=(const Program&);
};
#if defined(USE_COMGR_LIBRARY)
class Comgr_Binary_Data {
public:
Comgr_Binary_Data() : binaryData_({0}), created_(false) {}
~Comgr_Binary_Data();
bool create(amd_comgr_data_kind_t kind, void* binary, size_t binSize);
amd_comgr_data_t& data();
private:
amd_comgr_data_t binaryData_;
bool created_;
};
#endif
} // namespace device