Skip to content

Instantly share code, notes, and snippets.

@lakshanthad
Last active September 4, 2022 18:09
Show Gist options
  • Save lakshanthad/c971a0ceb1a702b5f694f0f0314d3bcb to your computer and use it in GitHub Desktop.
Save lakshanthad/c971a0ceb1a702b5f694f0f0314d3bcb to your computer and use it in GitHub Desktop.
Add TensorRT and CUDA path
#!/bin/bash
echo -e '\n# set environment variable for TensorRT' >> ~/.bashrc
echo 'export TENSORRT_DIR=/usr/include/aarch64-linux-gnu' >> ~/.bashrc
echo -e '\n# set environment variable for CUDA' >> ~/.bashrc
echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64' >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment