ggml_vulkan_hard_exit_available: Is the Vulkan hard-exit path compiled in?

View source: R/vulkan.R

ggml_vulkan_hard_exit_availableR Documentation

Is the Vulkan hard-exit path compiled in?

Description

Reports whether this build of ggmlR was compiled with -DGGML_VK_HARD_EXIT, which is what makes ggml_vulkan_shutdown(hard = TRUE) actually call _exit().

Usage

ggml_vulkan_hard_exit_available()

Details

The hard-exit path is disabled by default: CRAN Repository Policy forbids a package from terminating the user's R session, so the released package must not link _exit(). Builds from source can opt in with R CMD INSTALL . --configure-args="--enable-hard-exit" (on Windows, set Sys.setenv(GGML_VK_HARD_EXIT = "1") before installing, because R there ignores configure.args).

When it is not compiled in, ggml_vulkan_shutdown(hard = TRUE) performs the normal teardown and emits a warning rather than silently ignoring the request.

Value

TRUE if the hard-exit path is available, otherwise FALSE.

See Also

ggml_vulkan_shutdown

Examples

ggml_vulkan_hard_exit_available()

ggmlR documentation built on July 14, 2026, 1:08 a.m.