View source: R/calculate_max_perm_per_core.R
calculate_max_perm_per_core | R Documentation |
Calculate the number of permutations in a null model that can fit in RAM partitioned for a single thread
calculate_max_perm_per_core(nm_RAM_per_perm, RAM, n_thread, verbose = TRUE)
nm_RAM_per_perm |
Integer, the amount of RAM needed per permutation in a
null model (in bytes); this is the output from |
RAM |
Integer, the total amount of RAM available to be used, for all threads (in bytes) |
n_thread |
Integer, the number of threads over which RAM will be divided |
verbose |
If TRUE, print messages explaining logic |
An integer indicating the amount of RAM that is available to be used by any given thread
data("small_phenodata")
data("small_covariates")
nm_RAM_per_perm <- mtmcskat::benchmark_nm(phenotype = small_phenodata,
covariates = small_covariates,
benchmark_size = 1000)
RAM <- benchmarkme::get_ram()
calculate_max_perm_per_core(nm_RAM_per_perm = nm_RAM_per_perm,
RAM = RAM,
n_thread = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.