DGX Spark: UMA support - #17368
Merged
ggerganov merged 6 commits intoon Nov 20, 2025Nov 20, 2025
Merged
Conversation
ggerganov
left a comment
Member
Can we expect cudaMemGetInfo to be fixed in the future and not need this workaround?
ggml/src/ggml-cuda/ggml-cuda.cu
Outdated
ggml/src/ggml-cuda/ggml-cuda.cu
Outdated
ggml/src/ggml-cuda/ggml-cuda.cu
Outdated
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
Contributor
Author
Yes, have discussed with CUDA team but do not have an ETA on when that would be released |
ggerganov
approved these changes
on Nov 20, 2025Nov 20, 2025
slaren
approved these changes
on Nov 20, 2025Nov 20, 2025
Anico2
added a commit
to Anico2/llama.cpp
that referenced
this pull request
on Jan 16Jan 15, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
blime4
referenced
this pull request
in blime4/llama.cpp
on Feb 5Feb 5, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
hogeheer499-commits
added a commit
to hogeheer499-commits/llama.cpp
that referenced
this pull request
on Mar 13Mar 12, 2026
AMD APUs (e.g., Strix Halo with gfx1151) report prop.integrated=1, which triggers the UMA memory detection path added in ggml-org#17368. This causes the available GPU memory to be read from /proc/meminfo (MemAvailable) instead of hipMemGetInfo(). On AMD APUs with large TTM allocations, hipMemGetInfo() correctly reports the full GPU-accessible memory (e.g., 122880 MiB on a 128GB system), while /proc/meminfo reports significantly less (~90 GiB), as it only reflects available system RAM. The UMA detection path was designed for NVIDIA DGX Spark systems and is not appropriate for AMD APUs, where hipMemGetInfo() already returns accurate values. Fix: guard the UMA detection block with !defined(GGML_USE_HIP). Tested on: AMD Ryzen AI MAX+ 395, Radeon 8060S (gfx1151), 128GB unified memory, ROCm 7.1, Ubuntu 24.04, kernel 6.18.14. Fixes: ggml-org#18159
hogeheer499-commits
added a commit
to hogeheer499-commits/llama.cpp
that referenced
this pull request
on Mar 13Mar 12, 2026
AMD APUs report prop.integrated=1 which triggers the UMA memory path from ggml-org#17368. This overrides hipMemGetInfo() (accurate) with /proc/meminfo MemAvailable (too low), losing ~30 GiB on a 128GB Strix Halo system. For HIP builds, only enter the UMA path when GGML_CUDA_ENABLE_UNIFIED_MEMORY is explicitly set. This preserves correct behavior for both cases: - Default: hipMemGetInfo() reports accurate TTM-backed memory - GGML_CUDA_ENABLE_UNIFIED_MEMORY=1: /proc/meminfo is used (system RAM mode) Tested on AMD Ryzen AI MAX+ 395, Radeon 8060S (gfx1151), 128GB, ROCm 7.1. Fixes: ggml-org#18159
hogeheer499-commits
added a commit
to hogeheer499-commits/llama.cpp
that referenced
this pull request
on Mar 20Mar 19, 2026
AMD APUs report prop.integrated=1 which triggers the UMA memory path from ggml-org#17368. This overrides hipMemGetInfo() (accurate) with /proc/meminfo MemAvailable (too low), losing ~30 GiB on a 128GB Strix Halo system. For HIP builds, only enter the UMA path when GGML_CUDA_ENABLE_UNIFIED_MEMORY is explicitly set. This preserves correct behavior for both cases: - Default: hipMemGetInfo() reports accurate TTM-backed memory - GGML_CUDA_ENABLE_UNIFIED_MEMORY=1: /proc/meminfo is used (system RAM mode) Tested on AMD Ryzen AI MAX+ 395, Radeon 8060S (gfx1151), 128GB, ROCm 7.1. Fixes: ggml-org#18159
Seunghhon
pushed a commit
to Seunghhon/llama.cpp
that referenced
this pull request
on Apr 27Apr 26, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
ljubomirj
pushed a commit
to ljubomirj/llama.cpp
that referenced
this pull request
on May 7May 6, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
on May 16May 15, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
my-other-github-account
pushed a commit
to my-other-github-account/llama.cpp
that referenced
this pull request
on May 16May 15, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
phibya
pushed a commit
to ziee-ai/llama.cpp
that referenced
this pull request
on May 29May 29, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
fewtarius
pushed a commit
to fewtarius/CachyLLama
that referenced
this pull request
on May 31May 30, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This was referenced on Jun 29Jun 29, 2026
fukuro-kun
pushed a commit
to fukuro-kun/fukuro-llama-cpp-turboquant
that referenced
this pull request
last monthJul 5, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
MrLordCat
referenced
this pull request
in MrLordCat/llama.cpp-with-GUI
2 weeks agoJul 16, 2026
* DGX Spark: UMA support * Updates from PR feedback * More PR feedback cleanup * Update ggml/src/ggml-cuda/ggml-cuda.cu Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * Remove trailing whitespace * Update ggml/src/ggml-cuda/ggml-cuda.cu --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add support for DGX Spark/UMA devices on Linux per this note on detecting available memory:
Memory reporting differences with unified memory architecture