# TensorRT on-device cross compilation compatibility?

**URL:** <https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570>\
**Category:** Jetson AGX Orin\
**Tags:** tensorrt\
**Created:** [November 11, 2022, 3:02pm UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570 "2022-11-11T15:02:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thom4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@thom4](https://forums.developer.nvidia.com/u/thom4)\
**Post date:** [November 11, 2022, 3:02pm UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570/1 "2022-11-11T15:02:43Z")

</div>

Hi,

I’m trying to work out what Jetsons I need to buy to support a range of customers. I can’t find any concrete information about whether models compiled on one Jetson can work on another, or if cross compilation is compatible. Can someone please answer the following scenarios:

Can I use a model compiled on a Xavier NX 8GB on a Xavier NX 16GB?  
Can I use a model compiled on a Xavier NX on a Xavier AGX?  
Can I use a model compiled on a Orin AGX on a Xavier AGX?  
Can I cross-compile a model on an x86 system for use on a particular Jetson platform?

What other caveats are there? I don’t want to buy every possible Jetson just to compile models correctly.

Kind regards,

Thom

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 14, 2022, 3:04am UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570/3 "2022-11-14T03:04:24Z")

</div>

Hi,

The serialized engines are not portable across platforms or TensorRT versions.

For your use case, you can try the emulation feature on Orin devkit.  
It can emulate other Jetson Orin modules that might meet your requirement.

> **[Getting Started with Jetson AGX Orin Developer Kit](https://developer.nvidia.com/embedded/learn/get-started-jetson-agx-orin-devkit)**
>
> Table of contents What You'll Need Instructions Step 1 - Run through Ubuntu Setup (oem-config) Step 2 - Install JetPack Components Next Steps NVIDIA® Jetson AGX Orin™ Developer Kit enables development of full-featured AI applications for products...

Thanks.

---

<div class="post-metadata">

**Author:** ![thom4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@thom4](https://forums.developer.nvidia.com/u/thom4)\
**Post date:** [November 14, 2022, 10:01am UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570/4 "2022-11-14T10:01:36Z")

</div>

Thanks for the reply and the link. Just to confirm: there’s no compatibility even between the 8GB and 16GB Xavier NX? And other than the Orin devkit, there is no way to cross compile for other modules?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 15, 2022, 2:52am UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570/5 "2022-11-15T02:52:58Z")

</div>

Hi,

Unfortunately no.  
TensorRT engine is not portable so it’s required to be compiled on the exact target.  
However, it’s possible to use devkit to emulate other modules.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 7, 2022, 4:22am UTC](https://forums.developer.nvidia.com/t/tensorrt-on-device-cross-compilation-compatibility/233570/7 "2022-12-07T04:22:53Z")

</div>

Closed on December 7, 2022, 4:22am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
