Skip to content

Commit

Permalink
Merge pull request #471 from qqice/master
Browse files Browse the repository at this point in the history
Add support for JP 6.0DP
  • Loading branch information
rbonghi authored Dec 25, 2023
2 parents dc1cd8e + 58cf21d commit f4e6c61
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions jtop/core/jetson_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
# Write version of jetpack installed
# https://developer.nvidia.com/embedded/jetpack-archive
NVIDIA_JETPACK = {
# -------- JP6 --------
"36.2.0": "6.0 DP",
# -------- JP5 --------
"35.4.1": "5.1.2",
"35.3.1": "5.1.1",
Expand Down Expand Up @@ -104,6 +106,7 @@


CUDA_TABLE = {
'tegra234': '8.7',
'tegra23x': '8.7', # JETSON ORIN - tegra234
'tegra194': '7.2', # JETSON XAVIER
'tegra186': '6.2', # JETSON TX2
Expand Down
7 changes: 5 additions & 2 deletions jtop/core/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import subprocess as sp
from .processes import read_process_table
from .engine import read_engine
from .common import cat, GenericInterface
from .common import cat, check_file, GenericInterface
from .command import Command
# Create logger
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -425,7 +425,10 @@ def get_status(self, mem_total):
memory['EMC']['online'] = True
# Percentage utilization
# https://forums.developer.nvidia.com/t/real-time-emc-bandwidth-with-sysfs/107479/3
utilization = int(cat(self._root_path + "/actmon_avg_activity/mc_all"))
if check_file(self._root_path + "/debug/cactmon/mc_all"):
utilization = int(cat(self._root_path + "/debug/cactmon/mc_all"))
else:
utilization = int(cat(self._root_path + "/actmon_avg_activity/mc_all"))
memory['EMC']['val'] = utilization // memory['EMC']['cur']
# Read IRAM if available
if os.path.isdir(self._root_path + "/debug/nvmap/iram"):
Expand Down
2 changes: 2 additions & 0 deletions jtop/core/temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def read_temperature(data):
except OSError:
# If negative sensor offline
values[name] = TEMPERATURE_OFFLINE
except ValueError:
values[name] = TEMPERATURE_OFFLINE
return values


Expand Down

0 comments on commit f4e6c61

Please sign in to comment.