mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
feat: show EUs and subslices in UI
This commit is contained in:
parent
1795ec9532
commit
2def70c5de
@ -112,6 +112,13 @@ impl HardwareInfoSection {
|
|||||||
memory_info.cpu_accessible_total / 1024 / 1024
|
memory_info.cpu_accessible_total / 1024 / 1024
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(units) = drm_info.intel.execution_units {
|
||||||
|
self.set_execution_units(units.to_string());
|
||||||
|
}
|
||||||
|
if let Some(subslices) = drm_info.intel.subslices {
|
||||||
|
self.set_subslices(subslices.to_string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.set_driver_used(info.driver.as_str());
|
self.set_driver_used(info.driver.as_str());
|
||||||
@ -179,6 +186,10 @@ mod imp {
|
|||||||
#[property(get, set)]
|
#[property(get, set)]
|
||||||
compute_units: RefCell<String>,
|
compute_units: RefCell<String>,
|
||||||
#[property(get, set)]
|
#[property(get, set)]
|
||||||
|
execution_units: RefCell<String>,
|
||||||
|
#[property(get, set)]
|
||||||
|
subslices: RefCell<String>,
|
||||||
|
#[property(get, set)]
|
||||||
cuda_cores: RefCell<String>,
|
cuda_cores: RefCell<String>,
|
||||||
#[property(get, set)]
|
#[property(get, set)]
|
||||||
vbios_version: RefCell<String>,
|
vbios_version: RefCell<String>,
|
||||||
|
@ -42,6 +42,18 @@ template $HardwareInfoSection: $PageSection {
|
|||||||
selectable: true;
|
selectable: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$InfoRow {
|
||||||
|
name: "Execution Units:";
|
||||||
|
value: bind template.execution_units;
|
||||||
|
selectable: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$InfoRow {
|
||||||
|
name: "Subslices:";
|
||||||
|
value: bind template.subslices;
|
||||||
|
selectable: true;
|
||||||
|
}
|
||||||
|
|
||||||
$InfoRow {
|
$InfoRow {
|
||||||
name: "Cuda Cores:";
|
name: "Cuda Cores:";
|
||||||
value: bind template.cuda_cores;
|
value: bind template.cuda_cores;
|
||||||
|
Loading…
Reference in New Issue
Block a user