Skip to content

Commit

Permalink
Rename gpu module to have a unique name.
Browse files Browse the repository at this point in the history
The module name does not seem to impact the
name of the MQTT topics.
  • Loading branch information
PW999 committed Aug 21, 2023
1 parent bb38ade commit 0e209e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
This module for [LNXLink](https://github.com/bkbilly/lnxlink) is a drop-in replacement for the bundeled GPU module.
It uses `nvidia-settings` instead of `nvidia-smi` which might give better results on some (older) Nvidia GPUs.

Since this is a drop-in replacement, it'll use the same identifiers, thus it can not be used toghether with the 'gpu' module.

## How to use
You'll only need [gpu_nvidia_settings.py](gpu_nvidia_settings.py). There's no limitations on where you place the file,
it might depend on where and how you've installed [LNXLink](https://github.com/bkbilly/lnxlink), but it'll work fine
Expand Down
2 changes: 1 addition & 1 deletion gpu_nvidia_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Addon():

def __init__(self, lnxlink):
"""Setup addon, discover all GPUs"""
self.name = 'GPU'
self.name = 'GPUNvidiaSettings'
if which("nvidia-settings") is None:
logger.warning("nvidia-settings was not found on the PATH")
self.gpu_ids = self.__get_gpus()
Expand Down

0 comments on commit 0e209e9

Please sign in to comment.