(from @vjcitn) The BiocParallel vignette mentions foreach support and DoParParam ... but for package authors the steps of makeCluster, registerDo* and stopCluster the vignette should indicate what a package author foreach devotee would do to take advantage of BiocParallel
- leave registration and any cluster construction to the user outside
of package code
- whatever cluster configuration is done is done using BiocParallel facilities,
culminating in a DoParParam that the user manages and passes in
via BPPARAM
- ensure that default behavior is to run in serial mode
Ultimately it seems that the effects of switching to BiocParallel are only to remove code and ensure that BPPARAM is present and used properly. So it is a gain for simplicity and maintainability, but old habits die hard
(from @vjcitn) The BiocParallel vignette mentions foreach support and DoParParam ... but for package authors the steps of makeCluster, registerDo* and stopCluster the vignette should indicate what a package author foreach devotee would do to take advantage of BiocParallel
of package code
culminating in a DoParParam that the user manages and passes in
via BPPARAM
Ultimately it seems that the effects of switching to BiocParallel are only to remove code and ensure that BPPARAM is present and used properly. So it is a gain for simplicity and maintainability, but old habits die hard