skip dmabuf_p2p when one device is nvidia, due to driver crashes

This commit is contained in:
Ruben Ortlam
2026-08-25 11:51:21 +02:00
parent 5e9b414113
commit d49112ceab
+2 -1
View File
@@ -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