aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-09 10:17:17 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-05-09 10:17:17 -0700
commitdc7dbc2df71e88615c4f179a2eded7f617fca7a9 (patch)
treee2a6c5d76adc94e0afb7511cbbcf7eb6751f3ebd /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
parent05c365fb16a6ce63688d465e5d30c98a8742407b (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