Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jan 8, 2024
1 parent dea9655 commit 0e0ad70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jtop/core/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
# Create logger
logger = logging.getLogger(__name__)
# default ipgu path for Jetson devices
DEFAULT_IGPU_PATH="/sys/class/devfreq/"
DEFAULT_IGPU_PATH = "/sys/class/devfreq/"


def check_nvidia_smi():
cmd = Command(['nvidia-smi'])
Expand Down Expand Up @@ -97,7 +98,7 @@ def igpu_read_status(path):


def get_raw_igpu_devices():
igpu_path=DEFAULT_IGPU_PATH
igpu_path = DEFAULT_IGPU_PATH
raw_output = {}
for item in os.listdir(igpu_path):
item_path = os.path.join(igpu_path, item)
Expand All @@ -110,7 +111,7 @@ def get_raw_igpu_devices():
# path and file
raw_output[name_path] = "{}".format(name)
return raw_output


def find_igpu(igpu_path):
# Check if exist a integrated gpu
Expand Down

0 comments on commit 0e0ad70

Please sign in to comment.