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

    shell 复制代码
    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

    shell 复制代码
    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.

shell 复制代码
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

shell 复制代码
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

shell 复制代码
sudo apt-get install g++-aarch64-linux-gnu

Build samples via

shell 复制代码
cd /path/to/TensorRT/samples
make TARGET=aarch64
相关推荐
love_muming几秒前
链表每日一练
java·开发语言·数据结构·链表·idea·每日一练
范什么特西4 分钟前
重点:mybatis注意细节
java·mysql·mybatis
乐观勇敢坚强的老彭12 分钟前
GESP一级核心算法:循环与条件判断的结合
java·数据结构·算法
雪宫街道15 分钟前
SpringBoot 向 IOC 容器注册组件的两种姿势:@Configuration 与 @Import
java·spring boot·后端·spring
北城以北888831 分钟前
虚拟机安装JDK,Tomcat,部署项目
java·开发语言·tomcat
终将老去的穷苦程序员39 分钟前
基于Android Studio开发的安卓图书借阅管理系统
java·sqlite·android studio·android-studio
技术小结-李爽1 小时前
【工具】Maven的使用
java·maven
sou_time1 小时前
从 0 到 商用:AI Agent x SKILL x MCP 全栈实战教程:L2 高等篇:MCP 协议 + Spring AI + Agent 编排
java·人工智能·spring
冷小鱼1 小时前
高级研发编码习惯:从规范到艺术,再到AI+时代的人机协同
java·开发语言·python·编码习惯
齐 飞1 小时前
JDK21虚拟线程
java·后端