I have an R script that use parallel computing via the parallel and future packages. The code to set the parallel configuration in the R script is:
cl <- parallel::makeCluster(100)
future::plan(cluster, workers=cl)
I am running the R script in HPC where each node have 20 CPU. What is SLRUM configuration to run the R script as one job across multiple nodes. will:
--cpus-per-task=100
be sufficient?
Thank you