Can anyone else verify that, when using the RStudio app, the ‘future’ library’s availableCores() function doesn’t report the slurm-cognizant number that one could see through srun/sbatch?
The following code would be inside an interactive RStudio app session:
> library(future) > availableCores() system 28 > availableCores(methods = 'slurm') current 1
But via an sbatch script, results would look like:
> availableCores() Slurm 3
…and this is true even if you submit a script through the job composer. It just doesn’t work interactively through the app. I presume, because Singularity is not revealing … something?
I figured before I tinkered too much, I’d ask if anyone had a quick answer?