Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block JasonAtNvidia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View helperscript
### Do not run this script directly
# This script is intended to go along with
# and remove some of the
# more complicated functions that result
# in a simple setting of environment variables
cuda_location=$(dirname $(dirname $(which nvcc)))
# Get at the deviceQuery sample code to extract useful information
JasonAtNvidia / txdocker
Last active Oct 11, 2019
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
#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 \
You can’t perform that action at this time.