Skip to content

Commit e5f14e0

Browse files
ficoligcbot
authored andcommitted
Update GTSystemInf interface
Update GTSystemInf interface version to 5
1 parent c8158ac commit e5f14e0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

IGC/AdaptorOCL/ocl_igc_interface/gt_system_info.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ CIF_DEFINE_INTERFACE_VER_WITH_COMPATIBILITY(GTSystemInfo, 4, 3) {
9696
OCL_API_CALL virtual void SetSLMSizeInKb(uint32_t v);
9797
};
9898

99+
CIF_DEFINE_INTERFACE_VER_WITH_COMPATIBILITY(GTSystemInfo, 5, 4) {
100+
CIF_INHERIT_CONSTRUCTOR();
101+
};
102+
99103
CIF_GENERATE_VERSIONS_LIST(GTSystemInfo);
100104
CIF_MARK_LATEST_VERSION(GTSystemInfoLatest, GTSystemInfo);
101105
using GTSystemInfoTagOCL = GTSystemInfo<4>; // Note : can tag with different version for

IGC/AdaptorOCL/ocl_igc_interface/platform_helper.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ OCL_API_CALL inline void PopulateInterfaceWith(IGC::GTSystemInfo<4>& dst,
9696
COPY_VAL_EXACT(SLMSizeInKb);
9797
}
9898

99+
template <typename SrcStructT>
100+
OCL_API_CALL inline void PopulateInterfaceWith(IGC::GTSystemInfo<5>& dst,
101+
const SrcStructT& src) {
102+
PopulateInterfaceWith<SrcStructT>(static_cast<IGC::GTSystemInfo<4> &>(dst), src);
103+
}
104+
99105
}
100106

101107
namespace IgcPlatformFeaturesHelper {

0 commit comments

Comments
 (0)