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

N2D2 Cross Compilation #102

Closed
moelyaagoubi opened this issue Oct 18, 2021 · 2 comments
Closed

N2D2 Cross Compilation #102

moelyaagoubi opened this issue Oct 18, 2021 · 2 comments

Comments

@moelyaagoubi
Copy link

After the cross-compilation from host (Ubuntu machine 18.04 x64_64) to target (NVIDIA DRIVE AGX aarch64), I was able to generate the N2D2.so file compatible with aarch64.
However when I tried to do an import with Python3 (on the target), I got segmentation fault (core dumped).

@olivierbichler-cea
Copy link
Contributor

Hello,
I do not understand what you are trying to import in Python3? The N2D2.so is a C++ library.
If you want to import the Python binding, you should import the pyn2d2 module normally generated in the lib/ folder if you are using the CMake, like pyn2d2.cpython-37m-x86_64-linux-gnu.so.
However, the Python binding is currently not well documented, but stay tuned: we will release in the coming month a full Python API for N2D2!

@davidbriand-cea
Copy link
Contributor

This requiest have been fixed by mail.
The N2D2 TensorRT export is compatible with the cross-compilation NVidia environment for Drive AGX but
required some modification to the Exported Makefile.
Typically CUDA_PATH Makefile parameter should linked to the aarch64 cross-compilation CUDA environment.

Additional informations can be found here :
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#cross-compilation

I close the issue, feel free to reopen it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants