Skip to content

Instantly share code, notes, and snippets.

@madeye
Created November 14, 2011 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madeye/1363412 to your computer and use it in GitHub Desktop.
Save madeye/1363412 to your computer and use it in GitHub Desktop.
parallel loop
#include <omp.h>
int main(int args, char **argv) {
int procs = omp_get_num_procs();
omp_set_num_threads(procs);
#pragma omp parallel
while (1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment