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
相关推荐
小雅痞13 分钟前
[Java][Leetcode middle] 55. 跳跃游戏
java·leetcode
com未来19 分钟前
使用 NSSM 安装 Tomcat 11.0.6 为 Windows 服务
java·windows·tomcat
TDengine (老段)25 分钟前
基于 TSBS 标准数据集下 TimescaleDB、InfluxDB 与 TDengine 性能对比测试报告
java·大数据·开发语言·数据库·时序数据库·tdengine·iotdb
养军博客26 分钟前
spring boot3.0自定义校验注解:文章状态校验示例
java·前端·spring boot
lgily-122527 分钟前
常用的设计模式详解
java·后端·python·设计模式
IT成长史33 分钟前
deepseek梳理java高级开发工程师微服务面试题
java·微服务
茶本无香33 分钟前
Feign+Resilience4j实现微服务熔断机制:原理与实战
java·微服务·feignclient·熔断·resilience4j
遇见火星34 分钟前
Ansible模块——从控制节点向目标主机复制文件!
java·服务器·ansible
小码ssim37 分钟前
通过POI实现对word基于书签的内容替换、删除、插入
java·word
香饽饽~、1 小时前
函数式方法的实现(JDK8+)
java·服务器