Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <omp.h>
- int main(int argc, char *argv[]){
- int tid;
- printf("Hello world OMP\n");
- #pragma omp parallel private(tid)
- {
- tid = omp_get_thread_num();
- printf(" Thread nro %d\n", tid);
- }
- printf("Sou sequencial novamente\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement