Skip to content

Commit

Permalink
tests/test_omp.c: fix typo in output MSG
Browse files Browse the repository at this point in the history
As reported in issue #118, there was a typo in the output message; this
fixes it.

Bug: #118
  • Loading branch information
thinrope committed Nov 2, 2024
1 parent 8dff7ad commit 94ef2de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_omp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ int openmptest(){

#pragma omp parallel for shared(sum) private(i,j)
for (i=0; i<10;i++){
printf("num theads: %i\n",omp_get_thread_num());
printf("num threads: %i\n",omp_get_thread_num());
long int k=0;
for (j=0; j<4000000;j++){
k+=sqrt(j);
Expand All @@ -19,7 +19,7 @@ int openmptest(){
return end-start;
}
int openmp(){
fprintf(stderr, "Processors: %i, Max # theads: %i\n", omp_get_num_procs(), omp_get_max_threads());
fprintf(stderr, "Processors: %i, Max # threads: %i\n", omp_get_num_procs(), omp_get_max_threads());
int num = omp_get_max_threads();

int time, timeref;
Expand Down

0 comments on commit 94ef2de

Please sign in to comment.