Skip to content

Instantly share code, notes, and snippets.

@rtohid
Last active March 6, 2023 00:42
Show Gist options
  • Save rtohid/0eee4039dad79fff2f75bed3a2fb93e4 to your computer and use it in GitHub Desktop.
Save rtohid/0eee4039dad79fff2f75bed3a2fb93e4 to your computer and use it in GitHub Desktop.
minimal example to test hpxmp
#include <iostream>
#include <omp.h>
#ifdef HPXC
#include <hpx/hpx_main.hpp>
#endif // HPXC
int main(int argc, char *argv[]) {
std::cout << "Starting ..." << std::endl;
#pragma omp parallel
{
std::cout << "Hello World, from thread: " << omp_get_thread_num()
<< std::endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment