powered by
Prints information about Vulkan availability and devices, and returns the same information as a list so it can be used programmatically.
ggml_vulkan_status()
Invisibly, a list with components:
Logical, whether Vulkan support is compiled in and usable
Integer, number of Vulkan devices (0 if unavailable)
List of per-device property lists as returned by ggml_vulkan_list_devices; an empty list if there are none
ggml_vulkan_list_devices
Status is also printed to the console.
ggml_vulkan_status() st <- ggml_vulkan_status() if (st$available && st$n_devices > 0) { print(st$devices[[1]]$name) }
Run the code above in your browser using DataLab