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
// This code is from https://www.cac.cornell.edu/VW/OpenMP/whileloop.aspx | |
#include <omp.h> | |
#include <stdio.h> | |
int main(int argc, char **argv) | |
{ | |
/* OpenMP does not provide a parallel while loop, | |
so we're going to have to make one ourselves... */ | |
int sj, sstop, tn, tj, tstop; | |
int foo(int j); |