-
Notifications
You must be signed in to change notification settings - Fork 29
chunks #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chunks #95
Conversation
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
==========================================
+ Coverage 73.39% 75.49% +2.10%
==========================================
Files 1 2 +1
Lines 233 253 +20
==========================================
+ Hits 171 191 +20
Misses 62 62
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Hello, any update concerning this pull request ? |
|
To be truth, I don´t think it is a good idea to merge it now, as the |
In this PR I implement the
chunksiterator, which is useful to distribute the workload in threaded loops.The iterators are implemented in this package, for the moment: https://github.com/m3g/ChunkSplitters.jl
The idea is to facilitate the distribution of workloads in custom threaded loops, with, for example:
and this can be used to split the workload in each range of indices of the array, and also to accumulate in thread-safe temporary variables, by indexing by the ranges and chunk numbers. For instance: