From 94ef2de77bd6f2192c1990556a5abba430a691b0 Mon Sep 17 00:00:00 2001 From: Kalin KOZHUHAROV Date: Sat, 2 Nov 2024 15:30:23 +0100 Subject: [PATCH] tests/test_omp.c: fix typo in output MSG As reported in issue #118, there was a typo in the output message; this fixes it. Bug: https://github.com/georgmartius/vid.stab/issues/118 --- tests/test_omp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_omp.c b/tests/test_omp.c index abb27a1..9de249f 100644 --- a/tests/test_omp.c +++ b/tests/test_omp.c @@ -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); @@ -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;