GNU Astronomy Utilities - Tasks: task #14882, Optional weights for distributing...
You are not allowed to post comments on this tracker with your current authentication level.
task #14882: Optional weights for distributing jobs in threads
Submitter: | Mohammad Akhlaghi <makhlaghi> | ||
Submitted: | Mon 05 Mar 2018 11:38:01 PM UTC | ||
Should Start On: | Mon 05 Mar 2018 11:00:00 PM UTC | Should be Finished on: | Mon 05 Mar 2018 11:00:00 PM UTC |
Category: | Libraries | Priority: | 5 - Normal |
Item Group: | Enhancement | Status: | Postponed |
Privacy: | Public | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Effort: | 0.00 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-758e.
Corresponding source code
The function gal_threads_dist_in_threads is in charge of distributing the input jobs between different threads in Gnuastro's programs which benefit from threads.
Currently this function just takes the total number of jobs and divides them into the given number of threads evenly. However, in many cases, the "weight" of each job (for example area of region to be sorted) is clear before the distribution in threads.
We can use this information to make a non-even distribution, such that if too many large "weight" jobs are given to a thread, the smaller "weight" jobs are given to other threads and the processing can be done faster.