| ggml_vulkan_device_memory | R Documentation |
Returns free and total memory for the specified Vulkan device.
ggml_vulkan_device_memory(device = 0L)
device |
Device index (0-based) |
Named list with 'free' and 'total' memory in bytes
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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.