-
-
Save rtohid/0eee4039dad79fff2f75bed3a2fb93e4 to your computer and use it in GitHub Desktop.
minimal example to test hpxmp
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 <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