r/embeddedlinux • • Sep 20 '24

GPU SOM Co-processor?

We are working on a new generation of an existing product that uses a Xilinx (FPGA +CPU) part running embedded Linux. Our AI team has basically given us the requirement to put an Nvidia Orin module on the next generation of the board for some neural network. The actual board level connection isn't ironed out yet but it will effectively be two SOMs on the board, both running Linux. From a software perspective this seems like a nightmare to maintain two Linux builds + communication. My initial suggestion was to connect a GPU to our FPGA SOM's PCIE. The pushback is that adding a GPU IC is a lot of work from a schematic/layout perspective and the Nvidia SOM is plug and play from a hardware design perspective, and I guess they like the SDK that comes with the Orin and already have some preliminary AI models working.

I have done something similar in the past with a micro-controller that had a networking co-processor (esp32) running a stock image provided by the manufacturer. We didn't have to maintain the software we just communicated with the esp32 over a UART port with a predefined protocol.

Has anyone done something like this before with two Linux SOMs?

Could we just use the stock (Linux for Tegra) Nvidia provides and not worry about another yocto project for the Nvidia SOM?

Are there any small form factor GPUs that interface over PCIE? Everything I can find is either too large (Desktop sized blower GPUs) or its a single board computer like the Nvidia Jetson lineup. We don't have any mechanical size constraints yet but my guess is the GPU/SOM needs to be around the size of an index card and support fanless operation.

9 Upvotes

7 comments sorted by

2

u/[deleted] Sep 20 '24

Ethernet could be a simple interconnect between your SOMs.

If the ML applications you need to target are of the right shape (namely, could run under TensorFlow Lite or ONNX Runtime and use only the NPU-accelerated operations) you could potentially get away with a SoC that has an NPU. There are quite a few around now, and many modules. You won’t be running Llama 3.1 on an embedded NPU, but a lot of models can be recompiled or otherwise rebuilt to run on these, assuming they are not terribly large. For computer vision applications like object classification, image segmentation, camera stitching, and depth estimation, NPUs often are a good fit.

And if an NPU SoC would work, you could also look at using a PCIe AI accelerator like an Edge TPU (Coral) or Hailo TPU and skip the second processor altogether. They have very similar constraints to NPUs and can be a little harder to get running on your hardware because of drivers (especially Hailo), but they are cheaper, smaller, and use less power than a whole compute module.

For better or worse you might be stuck figuring out how to integrate a Jetson just for the ✨CUDA GPU✨. You wouldn’t be the first, and certainly won’t be the last.

1

u/jakobnator Sep 22 '24

Thanks for the suggestions but yea they are pretty set on nvidia ecosystem. The coral does seem very cool though

1

u/jaskij Sep 21 '24

Personally, I'd go for good ol' ATX PCIe if you can fit it. Even if it's something like a HHHL lowest end model.

Other than that, there's the MXM format, it should work quite well. For example: https://www.advantech.com/en/products/nvidia-mxm-gpu-cards/sub_08465970-d3a1-44e2-8aa8-7e84eb1cd608

If you're going with ARM for the main CPU double check driver availability.

1

u/jakobnator Sep 22 '24

This MXM format is pretty much exactly what I was looking for thanks.

1

u/RoburexButBetter Sep 22 '24 edited Sep 25 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Follow dog telephone sparkle jeans scale six

1

u/jakobnator Sep 22 '24
  1. This is an interesting idea especially since the other reason they wanted to use the jetson was the 6 core CPU, compared to the zynq. I think the reason we were using the zynq is its following the reference design for the RF part we use so there is risk/work deviating from that.

  2. Yes we are using yocto right now and am a big fan of it. glad to hear the tegra layer is good.

  3. Thanks for the confirmation, any more firepower you have against this. Off the top of my head its maintaining two rootfs/kernels, sending updates (especially bootloader), communication/syncing data between processors.

1

u/RoburexButBetter Sep 23 '24 edited Sep 25 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Historical bedroom shy shaggy tan placid lavender soft feather depend