mesytec-mnode/external/taskflow-3.8.0/benchmarks/wavefront/seq.cpp

19 lines
430 B
C++
Raw Permalink Normal View History

2025-01-04 01:25:05 +01:00
#include "matrix.hpp"
// wavefront computation
void wavefront_seq() {
for( int i=0; i<MB; ++i){
for( int j=0; j<NB; ++j) {
block_computation(i, j);
}
}
}
std::chrono::microseconds measure_time_seq() {
auto beg = std::chrono::high_resolution_clock::now();
wavefront_seq();
auto end = std::chrono::high_resolution_clock::now();
return std::chrono::duration_cast<std::chrono::milliseconds>(end - beg);
}