kingstertime

Untitled

Jan 21st, 2021
889
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <omp.h>
  3.  
  4. int main() {
  5.     int numThread = 8;
  6.     omp_set_num_threads(numThread);
  7. #pragma omp parallel
  8.     {
  9.         int id = omp_get_thread_num();
  10.         printf("Thread(%d): Hello World!\n", id);
  11.     }
  12. }
RAW Paste Data