Limiting number of cores to limit memory usage on cluster

This commit is contained in:
Louis Lacoste 2024-05-31 15:27:06 +02:00
parent ff531cbfca
commit 2a40e89a88
2 changed files with 4 additions and 4 deletions

View file

@ -52,7 +52,7 @@ list_collection <- clusterize_bipartite_networks(
colsbm_model = model,
nb_run = 3L,
global_opts = list(
nb_cores = parallelly::availableCores(omit = 1L),
nb_cores = parallelly::availableCores(omit = 1L) %/% 2L,
verbosity = 2L,
plot_details = 0L,
backend = "parallel"
@ -67,4 +67,4 @@ save_file <- file.path(
)
message("Clustering saved.")
saveRDS(list_collection, file = save_file)
saveRDS(list_collection, file = save_file)

View file

@ -52,7 +52,7 @@ list_collection <- clusterize_bipartite_networks(
colsbm_model = model,
nb_run = 3L,
global_opts = list(
nb_cores = parallelly::availableCores(omit = 1L),
nb_cores = parallelly::availableCores(omit = 1L) %/% 2L,
verbosity = 2L,
plot_details = 0L,
backend = "parallel"
@ -67,4 +67,4 @@ save_file <- file.path(
)
message("Clustering saved.")
saveRDS(list_collection, file = save_file)
saveRDS(list_collection, file = save_file)