From 62ec652e7c2fe8a8493d3e5e56a7716bf508e523 Mon Sep 17 00:00:00 2001 From: Violet Date: Thu, 18 Sep 2025 19:11:30 -0700 Subject: [PATCH] Disable virtual memory management (#515) We don't currently support it, so report it as unsupported. --- zluda/src/impl/device.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zluda/src/impl/device.rs b/zluda/src/impl/device.rs index ed8bb8c..6e63f4b 100644 --- a/zluda/src/impl/device.rs +++ b/zluda/src/impl/device.rs @@ -254,6 +254,10 @@ pub(crate) fn get_attribute( CUdevice_attribute::CU_DEVICE_ATTRIBUTE_UNIFIED_FUNCTION_POINTERS => { return get_device_prop(pi, dev_idx, |props| props.unifiedFunctionPointers) } + CUdevice_attribute::CU_DEVICE_ATTRIBUTE_VIRTUAL_MEMORY_MANAGEMENT_SUPPORTED => { + *pi = 0; + return Ok(()); + } _ => {} } let attrib = remap_attribute! {