Changes

Jump to: navigation, search

OpenMP Debugging in Visual Studio / Team Debug

418 bytes added, 09:31, 4 December 2017
m
Case A
==Case A==
 
test1.cpp
 
#include <iostream>
using namespace std;
int main() {
#pragma omp parallel
{
#pragma omp for
for (int i = 0; i < 10; i++)
cout << " now i at test1= " << i << endl;
}
}
 
test2.cpp
 
#include <iostream>
using namespace std;
int main() {
#pragma omp parallel
{
#pragma omp for
for (int j = 0; j < 10; j++)
cout << " now j at test2= " << j << endl;
}
}
==Case B==
190
edits

Navigation menu