Skip to content

Instantly share code, notes, and snippets.

@gonidelis
Last active July 4, 2020 20:41
Show Gist options
  • Save gonidelis/76138e1dfdfcdab86db0754c4b910c55 to your computer and use it in GitHub Desktop.
Save gonidelis/76138e1dfdfcdab86db0754c4b910c55 to your computer and use it in GitHub Desktop.
#include <hpx/hpx_main.hpp>
#include <hpx/include/parallel_for_each.hpp>
#include <hpx/modules/testing.hpp>
#include "iter_sent.hpp"
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <iostream>
void myfunction (int i) {
std::cout << ' ' << i;
}
int main()
{
hpx::parallel::for_each(hpx::parallel::execution::seq,
Iterator<std::int64_t>{0}, Sentinel<int64_t>{100}, myfunction);
//HPX_TEST_EQ(result, std::int64_t(4950));
return hpx::util::report_errors();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment