use signed int for openmp for loop

This commit is contained in:
Krishna Vedala 2020-04-23 20:59:02 -04:00
parent 9451beb977
commit 42f56b62ac
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
4 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ int main(int argc, char **argv)
char *flags = (char *)calloc(MAX_N, sizeof(char));
clock_t start_time = clock();
unsigned int i;
int i;
#ifdef _OPENMP
#pragma omp for schedule(runtime)
#endif

View File

@ -110,7 +110,7 @@ int main(int argc, char **argv)
long sum_score = 0;
clock_t start_time = clock();
unsigned int i;
int i;
#ifdef _OPENMP
#pragma omp parallel for schedule(runtime) reduction(+ \

View File

@ -92,7 +92,7 @@ int main(int argc, char **argv)
#endif
double total_duration = 0;
unsigned long i;
long i;
function_timer *timer = new_timer();
#ifdef _OPENMP
#pragma omp parallel for reduction(+ \

View File

@ -120,7 +120,7 @@ int main(int argc, char **argv)
clock_t start_time = clock();
/* Loop to set abundant flags */
unsigned long N;
long N;
#ifdef _OPENMP
#pragma omp for schedule(runtime)
#endif