auto_n_cores: Number of cores for multiple tasks

View source: R/utils_general.R

auto_n_coresR Documentation

Number of cores for multiple tasks

Description

Function for getting the number of cores that should be used for parallel processing of tasks. The number of cores is set to 75 % of the available cores. If the environment variable CI is set to "true" or if the process is running on cran 2 is returned.

Usage

auto_n_cores()

Value

Returns int as the number of cores.

See Also

Other Utils: clean_pytorch_log_transformers(), create_config_state(), create_dir(), generate_id(), get_file_extension(), get_py_package_versions(), is.null_or_na(), output_message(), print_message(), run_py_file()


aifeducation documentation built on April 4, 2025, 2:01 a.m.