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
相关推荐
vx-程序开发1 分钟前
django汽车租赁系统---附源码25360
java·javascript·spring boot·python·eclipse·django·php
zhougl9966 分钟前
Java实现腾讯云开发者社区列表爬虫
java·爬虫·腾讯云
智码看视界8 分钟前
Day49-AI微服务化-将大模型能力封装为标准微服务
java·微服务·ai·架构·大模型·sse流式输出·ai中台
Nebula_g8 分钟前
JavaSE基础语法:特殊类(特殊情景下的设计模式)
java·开发语言·设计模式
2401_8949155335 分钟前
Geo 优化源码部署避坑指南:解决访问异常、定位失效、收录卡顿问题
java·服务器·后端·缓存·开源
Dovis(誓平步青云)35 分钟前
《 固井工程软件 Cemsol 的数据管理与国产化适配实践》
android·java·开发语言·人工智能
大模型码小白37 分钟前
AI安全前沿:AI大模型安全防护的前沿技术
java·网络·人工智能·python·深度学习·学习·安全
evans在进步40 分钟前
LeetCode 34:在排序数组中查找元素的首尾位置——Java 两次二分查找详解
java·python·leetcode
@卓越俊逸_角立杰出@1 小时前
java实现Agent+ReAct demo(Spring Boot + Spring AI Alibaba ReAct Agent)
java·spring·react.js
看浪的路人1 小时前
第6讲:SQL 解析器
java·开发语言·数据库