From d3a8fd86ee916526fe8a833b2b88fe25473e52e2 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 11 Nov 2026 21:35:20 -0800 Subject: [PATCH] Doc: NVIDIA's driver refuses a device of its plan with host memory or initialization failed where channels run out Measured on an RTX 2080 (NVIDIA 620.70.06, job m3-max-18967, the probe's --fills): beside 60 devices of 3 VkQueues the runtime's device of 18 was refused with VK_ERROR_OUT_OF_HOST_MEMORY, beside 62 and 64 with VK_ERROR_INITIALIZATION_FAILED, and each time it was made with its least plan's 3 and announced it (the probe built at bdfc5047d2, with 86def80883's retry). Before 86def80883 the first answer was Error::OutOfMemory(Host): the device test failure on the 2080 under parallel test load (job m3-max-18589). --- crates/metal2vulkan-runtime/src/device/create.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/device/create.rs b/crates/metal2vulkan-runtime/src/device/create.rs index dadd1b45a..354fe27c6 100644 --- a/crates/metal2vulkan-runtime/src/device/create.rs +++ b/crates/metal2vulkan-runtime/src/device/create.rs @@ -1368,9 +1368,12 @@ pub(crate) struct LeastPlanTaken { /// Whether `result` is a driver's refusal of a device for want of its resources, of which a /// device of fewer `VkQueue`s needs less: `VK_ERROR_TOO_MANY_OBJECTS` (Vulkan's answer where the -/// device-specific resources a logical device needs run out), `VK_ERROR_INITIALIZATION_FAILED` -/// (NVIDIA's driver, what it needs, such as its GPU's channels, held by other devices), -/// `VK_ERROR_OUT_OF_DEVICE_MEMORY` or `VK_ERROR_OUT_OF_HOST_MEMORY`. +/// device-specific resources a logical device needs run out), `VK_ERROR_INITIALIZATION_FAILED`, +/// `VK_ERROR_OUT_OF_DEVICE_MEMORY` or `VK_ERROR_OUT_OF_HOST_MEMORY`. NVIDIA's driver answers the +/// second or the last where other devices hold its GPU's channels: on an RTX 2080 +/// (NVIDIA 620.70.06), beside 60 devices of 3 `VkQueue`s, a device of 18 was refused with +/// `VK_ERROR_OUT_OF_HOST_MEMORY`, and beside 62 or 64 with `VK_ERROR_INITIALIZATION_FAILED`; a +/// device of 3 was made beside each (`examples/queue_plan_cost.rs`, `--fills`). fn for_want_of_resources(result: vk::Result) -> bool { matches!( result,