Last active
July 4, 2020 20:41
-
-
Save gonidelis/76138e1dfdfcdab86db0754c4b910c55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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