feat: add tbb

This commit is contained in:
parker
2025-07-10 19:57:46 +01:00
parent 72de0c5602
commit f232491313
3 changed files with 19 additions and 2 deletions

View File

@@ -1,6 +1,19 @@
#include <catch2/catch_test_macros.hpp>
#include <oneapi/tbb/parallel_for.h>
#include <iostream>
TEST_CASE("foo")
{
REQUIRE(1==1);
}
TEST_CASE("tbb")
{
constexpr int N = 100;
oneapi::tbb::parallel_for(0, N, [](int i) {
std::cout << "Iteration " << i
<< " is running on thread "
<< std::this_thread::get_id() << std::endl;
});
}