Skip to content

Instantly share code, notes, and snippets.

@satojkovic
Created June 26, 2013 04:44
Show Gist options
  • Save satojkovic/5864843 to your computer and use it in GitHub Desktop.
Save satojkovic/5864843 to your computer and use it in GitHub Desktop.
#include "stdafx.h"
#include <iostream>
#include <omp.h>
using namespace std;
int main()
{
#pragma omp parallel
{
#pragma omp critical
cout << "Hello, OpenMP" << endl;
#pragma omp critical
cout << "Goodbye, OpenMP" << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment