Skip to content

Commit d5a313a

Browse files
authored
Merge pull request #132 from thinrope/master
tests/test_omp.c: fix typo in output MSG
2 parents d2d55a8 + 94ef2de commit d5a313a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_omp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ int openmptest(){
66

77
#pragma omp parallel for shared(sum) private(i,j)
88
for (i=0; i<10;i++){
9-
printf("num theads: %i\n",omp_get_thread_num());
9+
printf("num threads: %i\n",omp_get_thread_num());
1010
long int k=0;
1111
for (j=0; j<4000000;j++){
1212
k+=sqrt(j);
@@ -19,7 +19,7 @@ int openmptest(){
1919
return end-start;
2020
}
2121
int openmp(){
22-
fprintf(stderr, "Processors: %i, Max # theads: %i\n", omp_get_num_procs(), omp_get_max_threads());
22+
fprintf(stderr, "Processors: %i, Max # threads: %i\n", omp_get_num_procs(), omp_get_max_threads());
2323
int num = omp_get_max_threads();
2424

2525
int time, timeref;

0 commit comments

Comments
 (0)