Skip to content

Instantly share code, notes, and snippets.

@zbyerly
Created June 28, 2017 18:20
Show Gist options
  • Save zbyerly/dedfee6fadf768c774692892da254626 to your computer and use it in GitHub Desktop.
Save zbyerly/dedfee6fadf768c774692892da254626 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) {
hpx::lcos::channel<double> buffer;
std::string const channel_string = "my_channel";
buffer.register_as(channel_string);
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