using future on a computing cluster with slurm #519
-
|
I'm trying to use future (with Seurat) on a university computing cluster with slurm. I'm requesting 4-8 cores using the -c flag in my SBATCH script, so they should all be on the same node. However, it does not seem to be able to fork to more than one core. When I run the following: I get: so it seems like it's unable to find the correct number of available cores -- is there some reason I should expect this configuration to be incompatible with multicore mode? -- it's not Windows and I'm not using RStudio. Any ideas how to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
|
What does the following return in such a job? parallelly::availableCores(which = "all")Also, what's your PS. I might have been too quick to move this to Discussions. |
Beta Was this translation helpful? Give feedback.
-
|
The problem here was that |
Beta Was this translation helpful? Give feedback.
The problem here was that
availableCores()was affected by environment variableOMP_NUM_THREADS, which may be preset to, say,1on some systems, vianproc. In parallelly 1.26.1, which just reached CRAN (2021-06-29),availableCores()is no longer affected byOMP_NUM_THREADS.