TensorRT Build Samples for QNX AArch64

Cross Compilation Guide

This guide shows how to cross compile TensorRT samples for AArch64 QNX and Linux platform under x86_64 Linux.

Common Prerequisites

  • Install the CUDA cross-platform toolkit for the the corresponding target, and set the environment variable CUDA_INSTALL_DIR

    export CUDA_INSTALL_DIR="your cuda install dir"
    

    CUDA_INSTALL_DIR is set to /usr/local/cuda by default.

  • Install the cuDNN cross-platform libraries for the corresponding target, and set the environment variable CUDNN_INSTALL_DIR

    export CUDNN_INSTALL_DIR="your cudnn install dir"
    

    CUDNN_INSTALL_DIR is set to CUDA_INSTALL_DIR by default.

  • Install the TensorRT cross compilation debian packages for the corresponding target.

    • QNX AArch64: libnvinfer-dev-cross-qnx, libnvinfer5-cross-qnx
    • Linux AArch64: libnvinfer-dev-cross-aarch64, libnvinfer5-cross-aarch64
    • Android AArch64: No debian packages are available.

    If you are using the tar file released by the TensorRT team, you can safely skip this step. The tar file release already includes the cross compile libraries so no additional packages are required.

Build Samples for QNX AArch64

Download the QNX toolchain and export the following environment variables.

export QNX_HOST=/path/to/your/qnx/toolchains/host/linux/x86_64
export QNX_TARGET=/path/to/your/qnx/toolchain/target/qnx7

Build samples via

cd /path/to/TensorRT/samples
make TARGET=qnx

Build Samples for Linux AArch64

Sample compilation for Linux aarch64 needs the corresponding g++ compiler, aarch64-linux-gnu-g++. In Ubuntu, this can be installed via

sudo apt-get install g++-aarch64-linux-gnu

Build samples via

cd /path/to/TensorRT/samples
make TARGET=aarch64
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值