-
-
Save madeye/1363412 to your computer and use it in GitHub Desktop.
parallel loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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