mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Allow override of default platform Hardware Info Config
New string debug variable HardwareInfoOverride is used to specify new Hardware Info Config to be selected, for example 1x4x8. Change-Id: I6d939608e6551e4a9102e5ab2e08255ee4982933
This commit is contained in:
@@ -287,7 +287,8 @@ int main(int argc, char **argv) {
|
||||
platform.usRevId = (uint16_t)revisionId;
|
||||
|
||||
// set Gt and FeatureTable to initial state
|
||||
hardwareInfoSetup[productFamily](>SystemInfo, &featureTable, setupFeatureTable);
|
||||
std::string hwInfoConfig = "default";
|
||||
hardwareInfoSetup[productFamily](>SystemInfo, &featureTable, setupFeatureTable, hwInfoConfig);
|
||||
// and adjust dynamic values if not secified
|
||||
sliceCount = sliceCount > 0 ? sliceCount : gtSystemInfo.SliceCount;
|
||||
subSliceCount = subSliceCount > 0 ? subSliceCount : gtSystemInfo.SubSliceCount;
|
||||
|
||||
Reference in New Issue
Block a user