Added PCIe current generation info

parent 8caf6424
......@@ -5,6 +5,7 @@ Released: 2019-02-10
* Add overclock profiles
* Fixed GPU offset overclock not working for some cards
* Showing notification via libnotify if an update is available
* Added PCIe current generation info
Version 0.10.4
==============
......
......@@ -33,6 +33,7 @@
<li>Add overclock profiles</li>
<li>Fixed GPU offset overclock not working for some cards</li>
<li>Showing notification via libnotify if an update is available</li>
<li>Added PCIe current generation info</li>
</ul>
</description>
</release>
......
......@@ -38,7 +38,8 @@ class Info:
name: Optional[str] = None,
vbios: Optional[str] = None,
driver: Optional[str] = None,
pcie_generation: Optional[int] = None,
pcie_current_generation: Optional[int] = None,
pcie_max_generation: Optional[int] = None,
pcie_current_link: Optional[int] = None,
pcie_max_link: Optional[int] = None,
cuda_cores: Optional[int] = None,
......@@ -54,7 +55,8 @@ class Info:
self.name: Optional[str] = name
self.vbios: Optional[str] = vbios
self.driver: Optional[str] = driver
self.pcie_generation: Optional[int] = pcie_generation
self.pcie_current_generation: Optional[int] = pcie_current_generation
self.pcie_max_generation: Optional[int] = pcie_max_generation
self.pcie_current_link: Optional[int] = pcie_current_link
self.pcie_max_link: Optional[int] = pcie_max_link
self.cuda_cores: Optional[int] = cuda_cores
......
......@@ -102,7 +102,8 @@ class NvidiaRepository:
name=self._nvml_get_val(py3nvml.nvmlDeviceGetName, handle),
vbios=self._nvml_get_val(py3nvml.nvmlDeviceGetVbiosVersion, handle),
driver=self._nvml_get_val(py3nvml.nvmlSystemGetDriverVersion),
pcie_generation=self._nvml_get_val(py3nvml.nvmlDeviceGetMaxPcieLinkGeneration, handle),
pcie_current_generation=self._nvml_get_val(py3nvml.nvmlDeviceGetCurrPcieLinkGeneration, handle),
pcie_max_generation=self._nvml_get_val(py3nvml.nvmlDeviceGetMaxPcieLinkGeneration, handle),
pcie_current_link=self._nvml_get_val(py3nvml.nvmlDeviceGetCurrPcieLinkWidth, handle),
pcie_max_link=self._nvml_get_val(py3nvml.nvmlDeviceGetMaxPcieLinkWidth, handle),
cuda_cores=xlib_display.nvcontrol_get_cuda_cores(gpu),
......
......@@ -252,10 +252,11 @@ class MainView(MainViewInterface):
self._power_limit_scale.set_sensitive(False)
self._power_limit_apply_button.set_sensitive(False)
self._set_entry_text(self._info_pcie_entry, "%dx Gen%d @ %dx",
self._set_entry_text(self._info_pcie_entry, "%dx Gen%d @ %dx Gen%d",
gpu_status.info.pcie_max_link,
gpu_status.info.pcie_generation,
gpu_status.info.pcie_current_link)
gpu_status.info.pcie_max_generation,
gpu_status.info.pcie_current_link,
gpu_status.info.pcie_current_generation)
self._set_entry_text(self._info_memory_entry, "%d MiB / %d MiB",
gpu_status.info.memory_used,
gpu_status.info.memory_total)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment