5 /* TODO: Replace with file read. */
8 void array_contents(numtype array[], unsigned long size) {
9 printf ("[%li", array[0]);
10 for (unsigned long i = 1; i < size; i++) {
11 printf (", %li", array[i]);
17 int main (int argc, char* argv[]) {
18 numtype numarray[NUMBERS];
20 //unsigned int countarray[NUMBERS];
21 double startTime, endTime;
23 //TODO: read num file here.
24 //first value in file = numcount
25 for (size = 0; size < NUMBERS; size++) {
30 /* might want to comment this out, if numarray is big */
31 array_contents(numarray, size);
34 printf("init done starting algorithm. size: %li\n", size);
35 startTime = omp_get_wtime();
36 algorithm(numarray, size, NULL);
37 endTime = omp_get_wtime();
38 printf("DONE. took %f seconds.\n", endTime-startTime);
39 printf ("result: %li\n", numarray[size-1]);
42 /* might want to comment this out, if numarray is big */
43 array_contents(numarray, size);