• 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"
      
      • 1

      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"
      
      • 1

      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
    
    • 1
    • 2

    Build samples via

    cd /path/to/TensorRT/samples
    make TARGET=qnx
    
    • 1
    • 2

    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
    
    • 1

    Build samples via

    cd /path/to/TensorRT/samples
    make TARGET=aarch64
    
    • 1
    • 2
  • 相关阅读:
    手写 Attention & 迷你LLaMa2——LLM实战
    【自动驾驶系列丛书学习】2.《自动驾驶汽车环境感知》学习笔记
    队列:C++实现
    ESP Matter on ESP32H2
    tcpdump 异常错误
    ubuntu安装配置svn
    JS数组转为字符串如何实现?
    d的arsd10.9发布
    AIRIOT答疑第6期|如何使用二次开发引擎?
    Java拦截所有接口请求并过滤请求头内容
  • 原文地址:https://blog.csdn.net/u014647208/article/details/134395964