5 /* TODO: Replace with file read. */
8 int main (int argc, char* argv[]) {
9 numtype numarray[NUMBERS];
11 //unsigned int countarray[NUMBERS];
14 //TODO: read num file here.
15 //first value in file = numcount
16 for (size = 0; size < NUMBERS; size++) {
20 /* might want to comment this out, if numarray is big */
21 printf ("array details\n[%li", numarray[0]);
22 for (unsigned long i = 1; i < size; i++) {
23 printf (", %li", numarray[i]);
27 printf("init done starting algorithm. size: %li\n", size);
28 startTime = omp_get_wtime();
29 algorithm(numarray, size, NULL);
30 printf("DONE. took %f seconds.\n", omp_get_wtime()-startTime);
31 printf ("result: %li\n", numarray[(size-1)]);
33 /* might want to comment this out, if numarray is big */
34 printf ("array details\n[%li", numarray[0]);
35 for (unsigned long i = 1; i < size; i++) {
36 printf (", %li", numarray[i]);