Limiting number of cores to limit memory usage on cluster
This commit is contained in:
parent
ff531cbfca
commit
2a40e89a88
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue