|
ADS
Algorithms and Data Structures
|
The executor on the threads of OpenMP, beyond the book, compiled only when the compiler has OpenMP on (_OPENMP, e.g., -fopenmp, or the CMake option ADS_WITH_OPENMP, OFF by default). More...
Files | |
| file | ADS/parallel/OpenMPExecutor.h |
| The executor [see Executor.h] on the threads of OpenMP, beyond the book, compiled only when the compiler has OpenMP on (_OPENMP, e.g., -fopenmp, or the CMake option ADS_WITH_OPENMP, OFF by default): bulk( n , f ) is, outside a parallel region, a loop #pragma omp parallel for on \( n \) indices with the dynamic schedule of chunks of 1 on \( \min\{ p , n \} \) threads, and invoke( f , g ) is bulk() on 2 indices, so that the parallel algorithms of ADS run on the runtime of OpenMP of the compiler (the libgomp of GCC, the libomp of LLVM) unchanged. | |
Classes | |
| class | ADS::OpenMPLock |
| the lock of OpenMP, omp_lock_t, as a mutex of the standard More... | |
| class | ADS::OpenMPExecutor |
| the executor on the threads of OpenMP More... | |
The executor on the threads of OpenMP, beyond the book, compiled only when the compiler has OpenMP on (_OPENMP, e.g., -fopenmp, or the CMake option ADS_WITH_OPENMP, OFF by default).
The definitions, the invariants and the costs of the area are in Theory of parallelism.