#include "binary_tree.hpp" #include // binary_tree_omp void binary_tree_omp(size_t num_layers, unsigned num_threads) { std::atomic counter {0}; size_t N = 1 << num_layers; size_t *D = new size_t [N]; #pragma omp parallel num_threads(num_threads) { #pragma omp single { for(size_t i = 1; i(end - beg); }