mirror of https://github.com/TheAlgorithms/C
use signed int for openmp for loop
This commit is contained in:
parent
9451beb977
commit
42f56b62ac
|
@ -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
|
||||
|
|
|
@ -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(+ \
|
||||
|
|
|
@ -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(+ \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue