Repository navigation
cuda: the release server refuses a GPU it has no kernels for, by name, at startup (#2904) - #2914
Conversation
d78191e to
d5bce84
Compare
|
Status on this head: one change before it lands. The startup check matched the GPU's compute capability exactly against the release list (80, 86, 120, 121), so it would have refused GPUs that today's release server runs: an RTX 4090, L4 or L40S (sm_89) and a Jetson Orin (sm_87). The driver runs sm_80 and sm_86 SASS on any later 8.x GPU, and nearly every kernel in the release images is built for those two.
The new host test starts sm_80, 86, 87, 89 and 120 with one retain and no refusal, and refuses sm_75, 90, 100 and 122 before any retain ( Still owed: a GB10 start and serve on this head.
|
1bd299a to
574ad54
Compare
…m_86 SASS An exact match against the release list (80, 86, 120, 121) refused an RTX 4090, L4 or L40S (sm_89) and Jetson Orin (sm_87), which today's release server runs: the driver runs sm_80 and sm_86 SASS on any later 8.x GPU. Below sm_90 no image is arch-specific, so a target now serves a GPU of the same major and an equal or higher minor; from sm_120 on some images are sm_120a or sm_121a, so those still need the exact SM. The new host test fails on sm_87 with the exact match.
574ad54 to
f9c95a0
Compare
Fixes #2904.
The Linux release server carries CUDA kernels for a fixed set of compute capabilities, but on any other NVIDIA GPU nothing refused at startup: the model stopped at its first kernel load with
CUDA_ERROR_NO_BINARY_FOR_GPU (209).release_smslist the fatbin validator uses (zig/build/cuda.zig), with no copied list.Context.init, a GPU whose capability isn't in that list is refused before the primary context is retained, before any allocation or module load. The message names the GPU, its compute capability and the capabilities this build has kernels for.-Dgpubuilds keep their existing refusal, and its text and tests are unchanged.capabilities --jsonaddskernels(whether this build has kernels for the detected GPU) andkernel_sms, from a capability query that needs no context.No change on supported GPUs.
Tests (fake driver, real context and serializer): an sm_90 device is refused with the named message, zero retains and zero module loads. An sm_121 device starts with one retain and no refusal, and releases it. The JSON pins false and true and every list member. Disabling the check, or planting wrong metadata, turns the tests red. Full CUDA host 6176/6215 (39 skipped), and the arm64 Linux CUDA tests compile.
Not yet checked on a device: a GB10 start and serve on this head (the supported path).