Learn R Programming

ggmlR (version 0.8.1)

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

Arguments

Value

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

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.

See Also

ggml_vulkan_shutdown

Examples

Run this code
ggml_vulkan_hard_exit_available()

Run the code above in your browser using DataLab