mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4955] [Engine] Docker: only 6 of 10 visible GPUs are used; naming all 10 in GPU_ROLES kills the engine with "no CUDA-capable device" #2282
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cat3311 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4955
Strata 0.2.9-cuda13 (engine 0.1.55), also reproduced on 0.2.7-cuda13 (0.1.52).
Linux, driver 580.178.04, nvidia-container-toolkit 1.20.1 in CDI mode, 10x RTX 3080 Ti (sm_86), dual socket / 4 NUMA nodes.
What happens
count: all, the engine dies at"ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected",
preceded by "--layer-split ... needs one distinct GPU per K in --split-device (1..9)".
("layer split: layers 0-7 (CUDA0), ... one hand-off per window").
on its own, although the container sees 10 cards.
It is not the container runtime or the driver:
and ctypes on libcuda.so.1 gives cuInit 0 / count 10 with per-card attributes
for all ten (sm=80, mhz=1665000), CUDA_DEVICE_ORDER=PCI_BUS_ID
N-role launches work for N=6; N=10 with an explicit list still fails.
Also seen on a working 6-card run: "CUDA5: the layer split planned to keep 796 MiB free
here after loading; 245 MiB are free, so 551 MiB went to something the plan did not count."
Note: CUDA_VISIBLE_DEVICES="all" is invalid for CUDA (only NVIDIA_VISIBLE_DEVICES takes
"all"); with it the engine gets zero devices. Worth a clearer message in that case too.
Related: #4667 and its earlier auto-closed version #3899 (same Docker GPU_ROLES path, different symptom); the engine-side validation text "one distinct GPU per K in --split-device (1..9)" appears nowhere else in this tracker.
@cat3311 commented on GitHub (Nov 1, 2026):
Follow-up from the same box: ladder with explicit CUDA_VISIBLE_DEVICES + matching GPU_ROLES,
identical image/volume/compose except N:
ggml_cuda_init: failed to initialize CUDA: no CUDA-capable device is detected
So the working boundary is between 8 and 9 stages, the same whether
count: allorexplicit device_ids. With no roles and GPUS=all, launch itself writes "gpu": [0..5].
The validation string mentions "--split-device (1..9)", i.e. up to 10 stages should be
addressable; in practice 9 already yields zero devices for ggml_cuda_init while the same
container (same run command) shows cuDeviceGetCount=10 via ctypes on libcuda.so.1.
@cat3311 commented on GitHub (Nov 1, 2026):
Ladder on the same box (same image/volume/compose; only CUDA_VISIBLE_DEVICES + matching GPU_ROLES change), GPUs empty:
The boundary is exactly between 8 and 9 visible CUDA devices: ggml_cuda_init reports
"no CUDA-capable device is detected" although ctypes in the same container returns cuDeviceGetCount=10.
Looks like a fixed 8-device array in engine init rather than anything topology/driver related.
Separate oddity: with GPUS=all and no roles, launch writes "gpu": [0..5] regardless of the 10 visible cards.