Learn R Programming

ggmlR (version 0.8.4)

ggml_vulkan_status: 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()

Arguments

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

Run this code
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