Comments (4)
A more fine-grained progress bar that updates whenever FUN
finishes execution on an element of the vector X
one is applying over with eg bplapply
would indeed be a nice feature, which I hereby request. This is especially true for a rather time-consuming FUN
such as a DE analysis or a GSEA analysis.
from biocparallel.
Is there any update on this issue? An update of the progress bar whenever an element of X
is finished makes the bar really informative. As it is now, the default tasks=0
setting splits X
in as many chunks as there are workers and usually all workers finish simultaneously, making the progressbar essentially useless:
f <- function(i){
Sys.sleep(1)
}
# progress bar almost directly 0% -> 100%
res <- bplapply(1:20, f, BPPARAM = MulticoreParam(workers=4, progress=T))
Of course an option is to set tasks=length(X)
to get more frequent updates, but it comes at the cost of increased data transfer to the workers.
from biocparallel.
This is challenging to implement, especially across back ends, so remains a feature not yet implemented. tasks != 0
does cost more in terms of data transfer, but then presumably the individual tasks involve a lot of computation so perhaps the additional cost is not that relevant? Strategies for reducing data transfer are always advantageous...
from biocparallel.
I resolved this (d29c40b) by allowing tasks
to be a number larger than length(X)
(the length of the first argument to bplapply()
), and (b944679) having progressbar = TRUE
in the constructor of MulticoreParam()
or SnowParam()
set tasks = .Machine$integer.max
if tasks
is not set by the user. Thus MulticoreParam(progressbar = TRUE)
updates progress on each element of X
(desired behavior of this issue), while MulticoreParam(tasks = 2, progressbar = TRUE)
only updates on the completion of each task. The update on each element of X
come at the cost of more frequent data transfer to workers (though not set-up, e.g., loading packages), as @frederikziebell notes.
from biocparallel.
Related Issues (20)
- progressbar regression HOT 2
- BiocParallel first remote error: cannot open the connection HOT 10
- BioParallel errors: first remote error: cannot open the connection HOT 3
- timeout & bpoptions HOT 4
- 'automatic' package attach on workers generates noisy startup messages HOT 1
- BiocParallel too strict on type of `options(timeout)`
- wrong args for environment subassignment HOT 4
- Having issue with installing the BiocParallel HOT 6
- Make 'codetools' a required package? HOT 3
- ERROR: compilation failed for package 'BiocParallel'/g++: command not found HOT 1
- 'offset' contains negative indices HOT 1
- BiocParallel doesn't propagate warnings HOT 3
- For Developers Vignette Section Lacks a Code Example HOT 1
- g++ Error installing BiocParallel HOT 2
- Template file for Slurm job submission HOT 1
- Error using conflicted with BiocParallel in R4.2.0 HOT 7
- Converting Introduction to BiocParallel.rnw to R Markdown HOT 4
- Let environment variables override `workers = ` argument HOT 7
- parallelly::freeConnections() infers number of non-used connections (not hardcoded based on 128) HOT 10
- WISH: Support also SnowParam(type = "PSOCK") HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biocparallel.