Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
robot rock

Raffaello Bonghi rbonghi

🤖
robot rock
View GitHub Profile
@bgulla
bgulla / jetson_nano_cheatsheet.md
Last active Mar 24, 2021
Notes related to the NVIDIA Jetson Nano dev kit
View jetson_nano_cheatsheet.md

Jetson Nano Cheatsheet

image text

Below are my personal notes related to the Nvidia Jetson Nano Dev-board.

Performance Management

Nvidia allows your to fine tune the performance of your Jetson nano. More on this here.

Show the current settings

sudo /usr/bin/jetson_clocks.sh --show
@JasonAtNvidia
JasonAtNvidia / txdocker
Last active Dec 15, 2020
Short Bash script to enable use of the GPU within a docker container running on an NVIDIA Jetson TX2. Place inside /usr/local/bin/, chmod +x txdocker, ensure it is in your system PATH, and use just as you would the docker command.
View txdocker
#!/bin/bash
#Jason T. 2-6-2018
# Check specifically for the run command
if [[ $# -ge 2 && $1 == "run" ]]; then
# Tell docker to share the following folders with the base system
# This allows the docker containers to find CUDA, cuDNN, TensorRT
LIB_MAPS="/usr/lib/aarch64-linux-gnu \
/usr/local/cuda \
/usr/local/cuda/lib64"
@rbonghi
rbonghi / line_count.c
Last active Aug 29, 2015
How to count a line
View line_count.c
#define BIT_LEN 7
float line_value(int line) {
int i;
int value = 0, count = 0;
for(i=0; i < BIT_LEN; ++i) {
int mask = (1 << (i));
if((line & (mask)) == (mask)) {
value += i:
count++;