diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-09 10:17:17 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-05-09 10:17:17 -0700 |
commit | dc7dbc2df71e88615c4f179a2eded7f617fca7a9 (patch) | |
tree | e2a6c5d76adc94e0afb7511cbbcf7eb6751f3ebd /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h | |
parent | 05c365fb16a6ce63688d465e5d30c98a8742407b (diff) |
Optimized the non blocking thread pool:
* Use a pseudo-random permutation of queue indices during random stealing. This ensures that all the queues are considered.
* Directly pop from a non-empty queue when we are waiting for work,
instead of first noticing that there is a non-empty queue and
then doing another round of random stealing to re-discover the non-empty
queue.
* Steal only 1 task from a remote queue instead of half of tasks.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h')
0 files changed, 0 insertions, 0 deletions