Task processing method and apparatus
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorsKunlei Zhao, Muming Yang, Aliaksandr Shyshou
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorsKunlei Zhao, Muming Yang, Aliaksandr Shyshou
Estimating the term…
Embodiments of this application disclose a task processing method and apparatus. The method in embodiments of this application includes: A compute device obtains a mathematical model expression and instance data of a to-be-solved problem, where the mathematical model expression includes an objective function or a constraint condition, and the instance data indicates a value of a coefficient of the mathematical model expression; decomposes the to-be-solved problem into N subproblems based on the mathematical model expression and the instance data of the to-be-solved problem; and allocates, based on a computation amount of each of the N subproblems, the N subproblems to M threads for parallel execution, where N is greater than M, each of the M threads processes one or more subproblems, and a difference between computation amounts required by the M threads for respectively processing the one or more subproblems is less than or equal to a preset threshold.
A task processing method, comprising:
A task processing apparatus, comprising
A computer program product comprising instructions, wherein when the instructions are executed by a compute device cluster, the compute device cluster is caused to:
Dependencies are inferred from the claim text.