Skip to content

Instantly share code, notes, and snippets.

@gonidelis
Created November 24, 2021 12:47
Show Gist options
  • Save gonidelis/e2ab66b4fd5de9ddafea157347539339 to your computer and use it in GitHub Desktop.
Save gonidelis/e2ab66b4fd5de9ddafea157347539339 to your computer and use it in GitHub Desktop.
#include <hpx/hpx.hpp>
#include <hpx/hpx_main.hpp>
int main()
{
hpx::execution::experimental::fork_join_executor exec(
hpx::threads::thread_priority::normal,
hpx::threads::thread_stacksize::small_,
hpx::execution::experimental::fork_join_executor::loop_schedule::dynamic);
hpx::for_loop(hpx::execution::par.on(exec), 1, 48,
[&](int x)
{
});
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment