Skip to content

Instantly share code, notes, and snippets.

@ltroska

ltroska/main.cpp Secret

Created April 22, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltroska/88187b034f1b336c461eba67f1a20df2 to your computer and use it in GitHub Desktop.
Save ltroska/88187b034f1b336c461eba67f1a20df2 to your computer and use it in GitHub Desktop.
#include <hpx/hpx_init.hpp>
#include <hpx/hpx.hpp>
int hpx_main(int argc, char* argv[])
{
auto c = hpx::dataflow(
hpx::util::unwrapped(
[](int a) -> int
{return a;}
),
3
);
return hpx::finalize();
}
int main(int argc, char* argv[])
{
return hpx::init(argc, argv);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment