# \donttest{
if (ggml_vulkan_available()) {
# loopback sanity check on device 0
r <- ggml_vulkan_p2p_selftest(0L, 0L)
cat(r$report)
# cross-device P2P (requires >= 2 GPUs)
if (ggml_vulkan_device_count() >= 2) {
r <- ggml_vulkan_p2p_selftest(0L, 1L)
cat(r$report)
}
}
# }
Run the code above in your browser using DataLab