mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
344c2694a6
* Adds a hint to ThreadPool allowing us to turn off spin waiting. Currently each reader and record yielder op in a graph creates a threadpool with a thread that spins for 1000 iterations through the work stealing loop before yielding. This is wasteful for such ops that process I/O. * This also changes the number of iterations through the steal loop to be inversely proportional to the number of threads. Since the time of each iteration is proportional to the number of threads, this yields roughly a constant spin time. * Implement a separate worker loop for the num_threads == 1 case since there is no point in going through the expensive steal loop. Moreover, since Steal() calls PopBack() on the victim queues it might reverse the order in which ops are executed, compared to the order in which they are scheduled, which is usually counter-productive for the types of I/O workloads the single thread pools tend to be used for. * Store num_threads in a member variable for simplicity and to avoid a data race between the thread creation loop and worker threads calling threads_.size(). |
||
---|---|---|
.. | ||
mpreal | ||
alignedvector3.cpp | ||
autodiff_scalar.cpp | ||
autodiff.cpp | ||
BVH.cpp | ||
CMakeLists.txt | ||
cxx11_eventcount.cpp | ||
cxx11_meta.cpp | ||
cxx11_non_blocking_thread_pool.cpp | ||
cxx11_runqueue.cpp | ||
cxx11_tensor_argmax_cuda.cu | ||
cxx11_tensor_argmax.cpp | ||
cxx11_tensor_assign.cpp | ||
cxx11_tensor_broadcast_sycl.cpp | ||
cxx11_tensor_broadcasting.cpp | ||
cxx11_tensor_builtins_sycl.cpp | ||
cxx11_tensor_cast_float16_cuda.cu | ||
cxx11_tensor_casts.cpp | ||
cxx11_tensor_chipping_sycl.cpp | ||
cxx11_tensor_chipping.cpp | ||
cxx11_tensor_comparisons.cpp | ||
cxx11_tensor_complex_cuda.cu | ||
cxx11_tensor_complex_cwise_ops_cuda.cu | ||
cxx11_tensor_concatenation_sycl.cpp | ||
cxx11_tensor_concatenation.cpp | ||
cxx11_tensor_const.cpp | ||
cxx11_tensor_contract_cuda.cu | ||
cxx11_tensor_contract_sycl.cpp | ||
cxx11_tensor_contraction.cpp | ||
cxx11_tensor_convolution_sycl.cpp | ||
cxx11_tensor_convolution.cpp | ||
cxx11_tensor_cuda.cu | ||
cxx11_tensor_custom_index.cpp | ||
cxx11_tensor_custom_op.cpp | ||
cxx11_tensor_device_sycl.cpp | ||
cxx11_tensor_device.cu | ||
cxx11_tensor_dimension.cpp | ||
cxx11_tensor_empty.cpp | ||
cxx11_tensor_expr.cpp | ||
cxx11_tensor_fft.cpp | ||
cxx11_tensor_fixed_size.cpp | ||
cxx11_tensor_forced_eval_sycl.cpp | ||
cxx11_tensor_forced_eval.cpp | ||
cxx11_tensor_generator.cpp | ||
cxx11_tensor_ifft.cpp | ||
cxx11_tensor_image_patch.cpp | ||
cxx11_tensor_index_list.cpp | ||
cxx11_tensor_inflation.cpp | ||
cxx11_tensor_intdiv.cpp | ||
cxx11_tensor_io.cpp | ||
cxx11_tensor_layout_swap.cpp | ||
cxx11_tensor_lvalue.cpp | ||
cxx11_tensor_map.cpp | ||
cxx11_tensor_math.cpp | ||
cxx11_tensor_mixed_indices.cpp | ||
cxx11_tensor_morphing_sycl.cpp | ||
cxx11_tensor_morphing.cpp | ||
cxx11_tensor_notification.cpp | ||
cxx11_tensor_of_complex.cpp | ||
cxx11_tensor_of_const_values.cpp | ||
cxx11_tensor_of_float16_cuda.cu | ||
cxx11_tensor_of_strings.cpp | ||
cxx11_tensor_padding_sycl.cpp | ||
cxx11_tensor_padding.cpp | ||
cxx11_tensor_patch.cpp | ||
cxx11_tensor_random_cuda.cu | ||
cxx11_tensor_random.cpp | ||
cxx11_tensor_reduction_cuda.cu | ||
cxx11_tensor_reduction_sycl.cpp | ||
cxx11_tensor_reduction.cpp | ||
cxx11_tensor_ref.cpp | ||
cxx11_tensor_reverse_sycl.cpp | ||
cxx11_tensor_reverse.cpp | ||
cxx11_tensor_roundings.cpp | ||
cxx11_tensor_scan_cuda.cu | ||
cxx11_tensor_scan.cpp | ||
cxx11_tensor_shuffling_sycl.cpp | ||
cxx11_tensor_shuffling.cpp | ||
cxx11_tensor_simple.cpp | ||
cxx11_tensor_striding_sycl.cpp | ||
cxx11_tensor_striding.cpp | ||
cxx11_tensor_sugar.cpp | ||
cxx11_tensor_sycl.cpp | ||
cxx11_tensor_symmetry.cpp | ||
cxx11_tensor_thread_pool.cpp | ||
cxx11_tensor_uint128.cpp | ||
cxx11_tensor_volume_patch.cpp | ||
dgmres.cpp | ||
EulerAngles.cpp | ||
FFT.cpp | ||
FFTW.cpp | ||
forward_adolc.cpp | ||
gmres.cpp | ||
kronecker_product.cpp | ||
levenberg_marquardt.cpp | ||
matrix_exponential.cpp | ||
matrix_function.cpp | ||
matrix_functions.h | ||
matrix_power.cpp | ||
matrix_square_root.cpp | ||
minres.cpp | ||
mpreal_support.cpp | ||
NonLinearOptimization.cpp | ||
NumericalDiff.cpp | ||
openglsupport.cpp | ||
polynomialsolver.cpp | ||
polynomialutils.cpp | ||
sparse_extra.cpp | ||
special_functions.cpp | ||
splines.cpp |