onnxruntime/include/onnxruntime/core
Tim Harris 5e8952ef89
ThreadPool clean up : mm_pause in loops, correctly spin-then-wait, and adopt static methods consistently in the API (#5590)
Description: This change makes three changes to the ThreadPool class to clean up issues identified during performance analysis and optimization. (1) It uses mm_pause intrinsics in spin loops, helping avoid consuming pipeline resources while waiting. (2) It re-organizes the spin-then-steal loop for work distribution to start out spinning as intended, rather than to start out trying to steal. (3) It updates the ThreadPool class's API to be consistent in the use of static methods for public functions. The PR includes minor doc updates and corresponding changes to test cases.

Motivation and Context
The change helps ensure consistency in behavior between the OpenMP and Eigen-based implementations. Unlike the instance methods, the static methods abstract over the different ways in which threading can be implemented; they will map onto the OpenMP or Eigen-based implementations when threading is used. When threading is not used they will run work sequentially.
2020-10-28 09:49:18 +00:00
..
common ThreadPool clean up : mm_pause in loops, correctly spin-then-wait, and adopt static methods consistently in the API (#5590) 2020-10-28 09:49:18 +00:00
framework Factor out IAllocator so that it can be shared with shared providers (#5567) 2020-10-27 17:28:17 -07:00
graph Factor out IAllocator so that it can be shared with shared providers (#5567) 2020-10-27 17:28:17 -07:00
optimizer Expose recompute configs to the frontend (#5318) 2020-10-02 09:49:47 -07:00
platform ThreadPool clean up : mm_pause in loops, correctly spin-then-wait, and adopt static methods consistently in the API (#5590) 2020-10-28 09:49:18 +00:00
providers [OpenVINO-EP] Enable EP config options for VPU hardware (#5119) 2020-09-14 15:46:14 -07:00
session Bug fix for C API (#5520) 2020-10-24 13:37:58 -07:00