Skip to content

Instantly share code, notes, and snippets.

@madeye
Created Nov 14, 2011
Embed
What would you like to do?
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