Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segregate the cpu name for aarch64-linux and aarch64-qnx #14

Closed
andi4191 opened this issue Jul 8, 2019 · 2 comments
Closed

Segregate the cpu name for aarch64-linux and aarch64-qnx #14

andi4191 opened this issue Jul 8, 2019 · 2 comments
Labels
Bug Something isn't working

Comments

@andi4191
Copy link
Contributor

andi4191 commented Jul 8, 2019

We need to use separate cpu name for aarch64-linux and aarch64-qnx in order to prevent the libraries from clubbing with each other.

@andi4191 andi4191 added the Bug Something isn't working label Jul 8, 2019
@ZhenshengLee
Copy link

The project already use toolchain of bazel to build for different target machine.

DL4AGX/README.md

Lines 49 to 78 in 3dad2b9

#### aarch64-linux
##### Applicable to DRIVE AGX Platforms flashed with the Linux PDK and Jetson AGX Platforms
> In order to use this toolchain you must and have built a container that supports aarch64-linux (Dockerfiles will have names that contain `aarch64-linux` or `both`)
To cross-compile targets for aarch64-linux append the following flag to your build command: `--config=D5L-toolchain`
- e.g. `dazel build //plugins/dali/TensorRTInferOp:libtensorrtinferop.so --config=D5L-toolchain`
You will find the associated binaries in `//bazel-out/aarch64-fastbuild/plugins/dali/TensorRTInferOp/libtensorrtinferop.so`
> Note: `D5L-toolchain` is aliased to `L4T-toolchain` for Jetson users' convenience
#### aarch64-qnx
##### Applicable to DRIVE AGX Platforms flashed with the QNX PDK
> In order to use this toolchain you must obtain the QNX Toolchain and have built a container that supports QNX (Dockerfiles will have names that contain `aarch64-qnx` or `both`)
To cross-compile targets for aarch64-qnx append the following flag to your build command: `--config=D5Q-toolchain`
- e.g. `dazel build //plugins/dali/TensorRTInferOp:libtensorrtinferop.so --config=D5Q-toolchain`
You will find the associated binaries in `//bazel-out/aarch64-fastbuild/plugins/dali/TensorRTInferOp/libtensorrtinferop.so`
#### Building for older PDKs
By default `--config=[D5L/D5Q/L4T]-toolchain` will target the latest supported version. Since versions might use slightly different dependencies, to build using an older build container
you will also need to specify the exact PDK version you are targeting.

I think this can be closed. @andi4191

@chengzhe-xu
Copy link
Collaborator

As mentioned by Zhensheng Lee, this can be closed. And this topic is also no longer relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants