R/get_opencl_core_count.R

Defines functions get_opencl_core_count

Documented in get_opencl_core_count

#' Get the number of available OpenCL compute units
#'
#' Returns the number of compute units (cores) available on the default
#' OpenCL device. This can be useful for diagnostics or performance tuning.
#'
#' @return Integer count of compute units.
#' @export
get_opencl_core_count <- function() {
  .get_opencl_core_count_cpp()
}

Try the glmbayes package in your browser

Any scripts or data that you put into this service are public.

glmbayes documentation built on Aug. 5, 2026, 1:07 a.m.