Changes

Jump to: navigation, search

OpenMP Debugging in Visual Studio / Team Debug

61 bytes added, 15:34, 10 December 2017
m
Walkthrough
==Case A - Using the Thread window==
What can you can see in the Thread window under OpenMP project 1? We will use the following program for the experiment. config OpenMP 2. set OpenMP 
// Thread.cpp
#include <iostream>
#include <omp.h>
using namespace std;
printf("num of thread currently using is %d \n", omp_get_num_threads());
}
printf("working thread num is %d \n", omp_get_thread_num());
}
printf("\n");
printf("num of thread currently using is %d \n", omp_get_num_threads());
}
printf("working thread num is %d \n", omp_get_thread_num());
}
printf("\n");
return 0;
}
 
 
 
 
 
 
==Case B - Using the Parallel Stacks and the Parallel Watch Window==
190
edits

Navigation menu