diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 2ef247eb26..6d006eca37 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -15725,7 +15725,8 @@ static void ggml_vk_bench_pair( // device via dma-buf fd — true zero-copy if PCIe P2P works. // Setup (export/import) is outside the timing loop. // ================================================================= - if (dev0->external_memory_dma_buf && dev1->external_memory_dma_buf) { + if (dev0->external_memory_dma_buf && dev1->external_memory_dma_buf && + !((dev0->vendor_id == VK_VENDOR_ID_NVIDIA) != (dev1->vendor_id == VK_VENDOR_ID_NVIDIA))) { bool setup_ok = true; // Create exportable source buffer on dev0