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
相关推荐
赛姐在努力.11 分钟前
Spring DI详解--依赖注入的三种方式及优缺点分析
java·mysql·spring
IvanCodes32 分钟前
六、Docker 核心技术:Dockerfile 指令详解
java·数据库·docker
_oP_i42 分钟前
Java 服务接口中解决跨域(CORS,Cross-Origin Resource Sharing)问题
java·开发语言
用户9446814013501 小时前
部分替代Lombok?不可变数据的载体?一篇文章带你了解JDK16正式引用的record类型!
java
用户0332126663671 小时前
Java 高效处理 Word 文档:查找并替换文本的全面指南
java
轮到我狗叫了1 小时前
力扣.1054距离相等的条形码力扣767.重构字符串力扣47.全排列II力扣980.不同路径III力扣509.斐波那契数列(记忆化搜索)
java·算法·leetcode
渣哥1 小时前
你遇到过 ConcurrentModificationException 吗?其实很常见
java
lunzi_fly1 小时前
【源码解读之 Mybatis】【基础篇】-- 第1篇:MyBatis 整体架构设计
java·mybatis
JIngJaneIL2 小时前
汽车租赁|基于Java+vue的汽车租赁系统(源码+数据库+文档)
java·vue.js·spring boot·汽车·论文·毕设·汽车租赁系统
渣哥2 小时前
有一天,我和 CopyOnWriteArrayList 杯“线程安全”的咖啡
java