# \donttest{
if (ggml_vulkan_available() && ggml_vulkan_device_count() > 0) {
mem <- ggml_vulkan_device_memory(0)
cat("Free:", mem$free / 1e9, "GB\n")
cat("Total:", mem$total / 1e9, "GB\n")
}
# }
Run the code above in your browser using DataLab