% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_supports_gpu}
\alias{llama_supports_gpu}
\title{Check whether GPU offloading is available}
\usage{
llama_supports_gpu()
}
\value{
A logical scalar: \code{TRUE} if at least one GPU backend
  (e.g. Vulkan) is available, \code{FALSE} otherwise.
}
\description{
Returns `TRUE` if at least one GPU backend (e.g. Vulkan) was detected at
runtime. Use the result to decide whether to pass `n_gpu_layers != 0`
to [llama_load_model].
}
\examples{
if (llama_supports_gpu()) {
  message("GPU available, will use Vulkan backend")
} else {
  message("GPU not available, using CPU only")
}
}
