mesytec-mnode/external/taskflow-3.8.0/benchmarks/reduce_sum/reduce_sum.hpp

18 lines
388 B
C++
Raw Permalink Normal View History

2025-01-04 01:25:05 +01:00
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <chrono>
#include <iostream>
#include <iomanip>
#include <thread>
#include <random>
#include <cmath>
#include <atomic>
inline std::vector<double> vec;
std::chrono::microseconds measure_time_taskflow(unsigned);
std::chrono::microseconds measure_time_tbb(unsigned);
std::chrono::microseconds measure_time_omp(unsigned);