R/threads.R

Defines functions check_nt

Documented in check_nt

#' Check the max number of threads
#'
#' @description \code{get_threads} check the number of threads in this machine
#'
#' @return Integer with the max number of threads
#'
#' @useDynLib vein
#' @export
#' @examples
#' {
#'   check_nt()
#' }
check_nt <- function() {
  .Fortran("checkntf",
           nt = integer(1L)
  )$nt
}

Try the vein package in your browser

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

vein documentation built on April 30, 2023, 1:10 a.m.