Rasmus Munk Larsen
|
f349507e02
|
Specialize ThreadPoolDevice::enqueueNotification for the case with no args. As an example this reduces binary size of an TensorFlow demo app for Android by about 2.5%.
|
2017-10-13 15:58:12 -07:00 |
|
Benoit Steiner
|
a432fc102d
|
Moved the choice of ThreadPool to unsupported/Eigen/CXX11/ThreadPool
|
2016-12-12 15:24:16 -08:00 |
|
Rasmus Munk Larsen
|
32df1b1046
|
Reduce dispatch overhead in parallelFor by only calling thread_pool.Schedule() for one of the two recursive calls in handleRange. This avoids going through the scedule path to push both recursive calls onto another thread-queue in the binary tree, but instead executes one of them on the main thread. At the leaf level this will still activate a full complement of threads, but will save up to 50% of the overhead in Schedule (random number generation, insertion in queue which includes signaling via atomics).
|
2016-11-14 14:18:16 -08:00 |
|
Benoit Steiner
|
e256acec7c
|
Avoid unecessary object copies
|
2016-08-01 17:03:39 -07:00 |
|
Rasmus Munk Larsen
|
a9c1e4d7b7
|
Return -1 from CurrentThreadId when called by thread outside the pool.
|
2016-06-23 16:40:07 -07:00 |
|
Rasmus Munk Larsen
|
d39df320d2
|
Resolve merge.
|
2016-06-23 15:08:03 -07:00 |
|
Rasmus Munk Larsen
|
f1f2ff8208
|
size_t -> int
|
2016-06-03 18:06:37 -07:00 |
|
Rasmus Munk Larsen
|
76308e7fd2
|
Add CurrentThreadId and NumThreads methods to Eigen threadpools and TensorDeviceThreadPool.
|
2016-06-03 16:28:58 -07:00 |
|
Benoit Steiner
|
14a112ee15
|
Use signed integers more consistently to encode the number of threads to use to evaluate a tensor expression.
|
2016-06-09 08:25:22 -07:00 |
|
Benoit Steiner
|
ebf6ada5ee
|
Fixed compilation error in the tensor thread pool
|
2016-05-17 12:33:46 -07:00 |
|
Rasmus Larsen
|
00228f2506
|
Merged eigen/eigen into default
|
2016-05-17 09:49:31 -07:00 |
|
Benoit Steiner
|
83dfb40f66
|
Turnon the new thread pool by default since it scales much better over multiple cores. It is still possible to revert to the old thread pool by compiling with the EIGEN_USE_SIMPLE_THREAD_POOL define.
|
2016-05-13 17:23:15 -07:00 |
|
Rasmus Munk Larsen
|
989e419328
|
Address comments by bsteiner.
|
2016-05-12 16:54:19 -07:00 |
|
Rasmus Munk Larsen
|
e55deb21c5
|
Improvements to parallelFor.
Move some scalar functors from TensorFunctors. to Eigen core.
|
2016-05-12 14:07:22 -07:00 |
|
Benoit Steiner
|
ba95e43ea2
|
Added a new parallelFor api to the thread pool device.
|
2016-05-09 10:45:12 -07:00 |
|
Benoit Steiner
|
4bbc97be5e
|
Provide access to the base threadpool classes
|
2016-04-21 17:59:33 -07:00 |
|
Benoit Steiner
|
33adce5c3a
|
Added the ability to switch to the new thread pool with a #define
|
2016-04-21 11:59:58 -07:00 |
|
Benoit Steiner
|
a62e924656
|
Added ability to access the cache sizes from the tensor devices
|
2016-04-14 21:25:06 -07:00 |
|
Benoit Steiner
|
1372156c41
|
Prepared the migration to the new non blocking thread pool
|
2016-04-14 16:16:42 -07:00 |
|
Benoit Steiner
|
6772f653c3
|
Made it possible to customize the threadpool
|
2016-03-28 10:01:04 -07:00 |
|
Benoit Steiner
|
3d1e857327
|
Fixed compilation error
|
2016-03-22 15:48:28 -07:00 |
|
Benoit Steiner
|
de7d92c259
|
Pulled latest updates from trunk
|
2016-03-22 15:24:49 -07:00 |
|
Benoit Steiner
|
002cf0d1c9
|
Use a single Barrier instead of a collection of Notifications to reduce the thread synchronization overhead
|
2016-03-22 15:24:23 -07:00 |
|
Benoit Steiner
|
bc2b802751
|
Fixed a couple of typos
|
2016-03-22 14:27:34 -07:00 |
|
Benoit Steiner
|
6a31b7be3e
|
Avoid using std::vector whenever possible
|
2016-03-22 14:02:50 -07:00 |
|
Benoit Steiner
|
9fa65d3838
|
Split TensorDeviceType.h in 3 files to make it more manageable
|
2015-11-20 17:42:50 -08:00 |
|