From c2668947ea9ba4c73eb1182c162101f09ff250fd Mon Sep 17 00:00:00 2001 From: Rajeev Rao Date: Mon, 12 Jul 2021 02:28:23 -0700 Subject: [PATCH] Update make command for native aarch64 build Signed-off-by: Rajeev Rao --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6bb3bb28..6a3b49ce 100644 --- a/README.md +++ b/README.md @@ -125,20 +125,22 @@ For Linux platforms, we recommend that you generate a docker container for build ## Building TensorRT-OSS * Generate Makefiles or VS project (Windows) and build. - **Example: Linux (x86-64) build with default cuda-11.3** + **Example: Linux (x86-64) build with default cuda-11.3** ```bash cd $TRT_OSSPATH mkdir -p build && cd build cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=`pwd`/out make -j$(nproc) ``` - **Example: Native build on Jetson (arm64) with cuda-10.2** + **Example: Native build on Jetson (aarch64) with cuda-10.2** ```bash cd $TRT_OSSPATH mkdir -p build && cd build cmake .. -DTRT_LIB_DIR=$TRT_LIBPATH -DTRT_OUT_DIR=`pwd`/out -DTRT_PLATFORM_ID=aarch64 -DCUDA_VERSION=10.2 - make -j$(nproc) + CC=/usr/bin/gcc make -j$(nproc) ``` + > NOTE: C compiler must be explicitly specified via `CC=` for native `aarch64` builds of protobuf. + **Example: Ubuntu 18.04 Cross-Compile for Jetson (arm64) with cuda-10.2 (JetPack)** ```bash cd $TRT_OSSPATH