Skip to content

fix: Add Jetson GPU memory detection for unified memory architecture (fixes #8875)#8948

Open
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:fix-gpu-status-reporting-8875
Open

fix: Add Jetson GPU memory detection for unified memory architecture (fixes #8875)#8948
localai-bot wants to merge 1 commit intomudler:masterfrom
localai-bot:fix-gpu-status-reporting-8875

Conversation

@localai-bot
Copy link
Contributor

Summary

This PR fixes issue #8875 where GPU status reporting shows 0% usage and 0 memory on Jetson Orin Nano devices, even though the GPU is actively being used.

Problem

  • Jetson devices use integrated GPUs with unified memory architecture
  • is not available on Jetson (no PCI bus)
  • GPU status was showing 0 for all metrics despite GPU being in use

Solution

  • Added Jetson platform detection via sysfs entries and device tree
  • Implemented unified memory reporting that uses system RAM info
  • GPU memory is now reported as system memory (since GPU shares RAM)
  • Usage calculated as Total - Available

Changes

  • Modified:
    • Added function
    • Added function
    • Updated to check Jetson first

Testing

  • Code compiles successfully
  • Will need testing on actual Jetson hardware to verify detection and reporting

Closes #8875

- Add isRunningOnJetson() to detect Jetson platforms via sysfs and device tree
- Add getJetsonGPUMemory() to report GPU memory using unified memory architecture
- Jetson devices (Orin, Xavier, Nano, TX) use integrated GPUs without nvidia-smi
- Report system RAM as GPU memory since Jetson GPU shares memory with CPU
- Use Total - Available to calculate actual GPU memory usage
- Fix issue mudler#8875 where GPU status shows 0 despite GPU being in use
@netlify
Copy link

netlify bot commented Mar 10, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 798b3e1
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69b084993ba9380008fcd5c1
😎 Deploy Preview https://deploy-preview-8948--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler added the bug Something isn't working label Mar 10, 2026
@localai-bot localai-bot moved this to In review in LocalAI Agent team Mar 10, 2026
@mudler mudler self-assigned this Mar 11, 2026
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

Status: In review

Development

Successfully merging this pull request may close these issues.

GPU Status not reporting properly (despite GPU being used : I can see it in jtop)

2 participants