I'm studying Parallel Programming in Visual Studio using C++. So, I get the practice work in which I should to set up number of threads using environment variable - OMP_NUM_THREADS. But how its using I don't know. Here's my code:
#include <omp.h>
#include <iostream>
#include <thread>
using namespace std;
int main()
{
#pragma omp parallel
{
cout << "Hello World\n";
}
return 0;
}
So, how I can get use it? What should I do?