Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using namespace std;
- #include <iostream>
- #include <omp.h>
- int main()
- {
- omp_set_num_threads(8);
- #pragma omp parallel
- {
- cout << "Total: " << omp_get_num_threads() << " " << "Number: " << omp_get_thread_num() << " " << "Hello world!" << endl;
- }
- }
Add Comment
Please, Sign In to add comment