5#include "thread_pool.hpp"
43template <
typename Body>
47 std::size_t grain_size,
54#include "parallel_for.inl"
A fixed set of threads a loop's iterations are spread over.
Definition thread_pool.hpp:38
void parallel_for(thread_pool &pool, std::size_t count, std::size_t grain_size, const Body &body)
Run a loop, splitting it across a pool.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
@ cpu
CPU of the host node.