| ggml_vulkan_init | R Documentation |
Creates a Vulkan backend for the specified device. The backend must be freed with ggml_vulkan_free() when done.
ggml_vulkan_init(device = 0L)
device |
Device index (0-based, default 0) |
Vulkan backend pointer
if (ggml_vulkan_available() && ggml_vulkan_device_count() > 0) {
backend <- ggml_vulkan_init(0)
print(ggml_vulkan_backend_name(backend))
ggml_vulkan_free(backend)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.