Skip to content

Commit

Permalink
dropping tbb
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed May 30, 2023
1 parent ac1753a commit cb7c40a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ find_package(Boost REQUIRED)
find_package(sciplot REQUIRED)
find_package(LLVM REQUIRED CONFIG)
find_package(fmt REQUIRED)
find_package(TBB REQUIRED)

if(${CTBENCH_ENABLE_TESTS})
find_package(Catch2 REQUIRED)
Expand Down
2 changes: 0 additions & 2 deletions grapher/cmake/grapher-target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ target_include_directories(grapher

llvm_map_components_to_libnames(llvm_libs support)

target_link_libraries(grapher PRIVATE TBB::tbb)

target_link_libraries(grapher
PUBLIC
${llvm_libs}
Expand Down
4 changes: 1 addition & 3 deletions grapher/lib/grapher/plotters/compare_by.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <algorithm>
#include <execution>
#include <filesystem>
#include <fstream>
#include <string>
Expand Down Expand Up @@ -306,8 +305,7 @@ void plotter_compare_by_t::plot(benchmark_set_t const &bset,
fs::create_directories(dest);

// Drawing, ie. unwrapping the nested maps and drawing curves + saving plots
std::for_each(std::execution::par_unseq, curve_aggregate_map.begin(),
curve_aggregate_map.end(),
std::for_each(curve_aggregate_map.begin(), curve_aggregate_map.end(),
[&](auto const &aggregate_key_value) {
generate_plot(aggregate_key_value,
{.plot_output_folder = dest,
Expand Down
5 changes: 2 additions & 3 deletions grapher/lib/grapher/utils/json.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <algorithm>
#include <execution>
#include <fstream>

#include <nlohmann/json.hpp>
Expand Down Expand Up @@ -132,8 +131,8 @@ filtered_values_sums(benchmark_instance_t const &instance,
return val;
};

std::transform(std::execution::par_unseq, instance.repetitions.begin(),
instance.repetitions.end(), res.begin(), get_val);
std::transform(instance.repetitions.begin(), instance.repetitions.end(),
res.begin(), get_val);

return res;
}
Expand Down

0 comments on commit cb7c40a

Please sign in to comment.