Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(gpu): better detection for MacOS and Thor#9263

Merged
mudler merged 1 commit into
masterfrom
feat/gpu-detection
Apr 6, 2026
Merged

fix(gpu): better detection for MacOS and Thor#9263
mudler merged 1 commit into
masterfrom
feat/gpu-detection

Conversation

@mudler
Copy link
Copy Markdown
Owner

@mudler mudler commented Apr 6, 2026

Description

This pull request adds support for detecting Apple Silicon (M1/M2) GPUs and improves unified memory handling across platforms. It introduces logic to identify Apple GPUs on macOS, reports their memory usage as unified system RAM, and updates related utilities for vendor color mapping and device lists. Additionally, it improves detection of NVIDIA Jetson/Tegra devices with unified memory and updates a Go module dependency.

Apple Silicon (macOS) GPU support:

  • Added detection of Apple Silicon GPUs using system_profiler on macOS, reporting GPU memory as system RAM and returning unified memory usage for Apple GPUs. (pkg/xsysinfo/gpu.go) [1] [2] [3]
  • Added VendorApple constant and updated vendor color mapping to include Apple. (pkg/xsysinfo/gpu.go, core/http/react-ui/src/utils/format.js) [1] [2]

Unified memory device support:

  • Expanded the list of unified memory devices to include new NVIDIA models (e.g., NVIDIA Thor). (pkg/xsysinfo/gpu.go)
  • Improved NVIDIA GPU memory detection to handle Jetson/Tegra devices by reporting system RAM when dedicated VRAM is not available. (pkg/xsysinfo/gpu.go) [1] [2]

Dependency updates:

  • Updated the github.com/mudler/memory Go module to a newer version. (go.mod)

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@mudler mudler merged commit 505c417 into master Apr 6, 2026
35 checks passed
@mudler mudler deleted the feat/gpu-detection branch April 6, 2026 22:39
@mudler mudler added the bug Something isn't working label Apr 6, 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant