By default, TileDB will use all available cores on a given machine. In multi-user or multi-process settings, one may want to reduce the number of core. This function will take a given number, or default to smaller of the ‘Ncpus’ options value or the ‘"OMP_THREAD_LIMIT"’ enviroment variable (or two as hard fallback).
limitTileDBCores(ncores, verbose = FALSE)
Value of CPUs used, if missing the smaller of a fallback of two, the value of ‘Ncpus’ (if set) and the value of environment variable ‘"OMP_THREAD_LIMIT"’ is used.
Optional logical toggle; if set, a short message is displayed informing the user about the value set.
The modified configuration object is returned invisibly. As a side-effect the updated config is also used to set the global context object.