|
ADS
Algorithms and Data Structures
|
Files | |
| KokkosExecutor.h | |
| The executor [see Executor.h] on an execution space of the host of Kokkos, beyond the book: KokkosExecutor< Space > runs bulk( n , f ) as a Kokkos::parallel_for of a RangePolicy of the space on the \( n \) indices with chunks of 1, followed by the fence() of the space, so that the parallel algorithms of ADS run on the threads that a program of Kokkos already has (those of its backend of OpenMP, of std::thread or of HPX), and concurrency() is that of the space. | |
| SenderExecutor.h | |
| The executor [see Executor.h] on a scheduler of the senders and the receivers (the std::execution of C++26, P2300), beyond the book, on the implementation of reference, stdexec: SenderExecutor< Sch > runs bulk( n , f ) as the sender schedule( s ) | bulk( par , n , f ) of the scheduler \( s \), waited by sync_wait(), so that the parallel algorithms of ADS run on whatever scheduler the program has: the static_thread_pool of stdexec, its system scheduler, the pools of oneTBB and of Taskflow that stdexec wraps, a scheduler of HPX, or one of the program itself. | |
| StdParExecutor.h | |
| The executor [see Executor.h] on the parallel algorithms of the standard library, beyond the book: StdParExecutor< Policy > runs bulk( n , f ) as std::for_each( Policy() , first , last , g ) on the indices \( 0 , \ldots , n - 1 \), so that the threads are those of the backend of the vendor (oneTBB under libstdc++, the pool of MSVC, the backends of libc++, the threads of nvc++ -stdpar=multicore), and a program that runs only on the standard library does not start the pool of ADS beside them. | |
| TaskflowExecutor.h | |
| The executor [see Executor.h] on a tf::Executor of Taskflow, beyond the book: TaskflowExecutor refers to the executor of Taskflow of the program, which it does not own, and runs bulk( n , f ) as a graph of Taskflow made of one for_each_index on the \( n \) indices with the dynamic partitioner of chunks of 1 (the patterns of ADS already give it blocks). | |