8#include "MantidParallel/ThreadingBackend.h"
19 if (comm.size() == 1) {
23 int threads = std::max(3,
static_cast<int>(std::thread::hardware_concurrency()));
24 m_backend = std::make_shared<detail::ThreadingBackend>(threads);
33 if (comm.size() != 1 && comm.size() != threads)
34 throw(
"ParallelRunner: number of requested threads does not match number "
37 m_backend = std::make_shared<detail::ThreadingBackend>(threads);
std::shared_ptr< Mantid::Parallel::detail::ThreadingBackend > m_backend
std::shared_ptr< Mantid::Parallel::detail::ThreadingBackend > m_serialBackend