ggml_vulkan_status: Print Vulkan status

View source: R/vulkan.R

ggml_vulkan_statusR Documentation

Print Vulkan status

Description

Prints information about Vulkan availability and devices, and returns the same information as a list so it can be used programmatically.

Usage

ggml_vulkan_status()

Value

Invisibly, a list with components:

available

Logical, whether Vulkan support is compiled in and usable

n_devices

Integer, number of Vulkan devices (0 if unavailable)

devices

List of per-device property lists as returned by ggml_vulkan_list_devices; an empty list if there are none

Status is also printed to the console.

Examples

ggml_vulkan_status()

st <- ggml_vulkan_status()
if (st$available && st$n_devices > 0) {
  print(st$devices[[1]]$name)
}

ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.