Skip to content

futuremice on computing cluster #703

Discussion options

You must be logged in to vote

The UCSF Wynton HPC environment uses Son of Grid Engine (SGE) as the scheduler. SGE job allocations are automatically recognized by Futureverse (via the parallelly package). For example, if you request a multi-core, single-host job using something like:

$ qsub -pe smp 42 myscript.sh

where myscript.sh then runs R, then:

parallelly::availableCores()

will detect the number of CPU slots that SGE has allocated to your job and return 42. Therefore, if you use:

library(future)
plan(multisession, workers = availableCores())

that will spin up 42 parallel R workers in the background, which then are ready to be used by future_lapply() ,future_map(), ...

Since workers = availableCores() is the defaul…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeandigitale
Comment options

Answer selected by jeandigitale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants