Skip to content

Commit

Permalink
Merge pull request #401 from KyL0N/model-recognise-patch-1
Browse files Browse the repository at this point in the history
Fix model recognise for orin nano
  • Loading branch information
rbonghi committed Apr 28, 2023
2 parents 3aebdc4 + 25ca9b4 commit d2f7d98
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-approve-and-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# will not occur.
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.3.6
uses: dependabot/fetch-metadata@v1.4.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
# Here the PR gets approved.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Start jtop it's pretty simple just write `jtop`!
jtop
```

A simple interface will appear on your terminal, more capabilities are documented at [_jtop_](https://rnext.it/jetson_stats/jtop.html) page.
A simple interface will appear on your terminal, more capabilities are documented at [_jtop_](https://rnext.it/jetson_stats/jtop/jtop.html) page.

<div align="center">

Expand Down
23 changes: 23 additions & 0 deletions docs/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,31 @@ You can try running this command
Design your Dockerfile
----------------------

jetson-stats need few things to be installed on your container.

1. ``apt-get install -y python3``
2. ``apt-get install -y python3-pip`` *or* you can install from **source**

Below a simple example to install jetson-stats

.. code-block:: docker
FROM python:3-buster
RUN pip install -U jetson-stats
Tips and tricks
---------------

If you work with different **multiple users** on your docker container:

.. code-block:: bash
docker run --group-add $JTOP_GID --rm -it -v /run/jtop.sock:/run/jtop.sock rbonghi/jetson_stats:latest
You can get the ``JTOP_GID`` by running:

.. code-block:: bash
getent group jtop | awk -F: '{print $3}'
Issue reference `#391 <https://github.com/rbonghi/jetson_stats/issues/391>`_
10 changes: 10 additions & 0 deletions jtop/gui/pengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ def pass_orin(engine):
]


def pass_orin_nano(engine):
return [
add_engine_in_list('APE', engine, 'APE', 'APE'),
add_engine_in_list('NVENC', engine, 'NVENC', 'NVENC') + add_engine_in_list('NVDEC', engine, 'NVDEC', 'NVDEC'),
add_engine_in_list('NVJPG', engine, 'NVJPG', 'NVJPG') + add_engine_in_list('NVJPG1', engine, 'NVJPG', 'NVJPG1'),
add_engine_in_list('SE', engine, 'SE', 'SE') + add_engine_in_list('VIC', engine, 'VIC', 'VIC'),
]


def map_xavier(engine):
return [
add_engine_in_list('APE', engine, 'APE', 'APE') + add_engine_in_list('CVNAS', engine, 'CVNAS', 'CVNAS'),
Expand All @@ -60,6 +69,7 @@ def map_jetson_nano(engine):


MAP_JETSON_MODELS = {
'orin nano': pass_orin_nano,
'orin nx': pass_orin,
'agx orin': pass_orin,
'xavier': map_xavier,
Expand Down

0 comments on commit d2f7d98

Please sign in to comment.