From 5b3063f4d34adf64b52b2288abe4ffbe89739647 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Wed, 3 Jun 2020 12:55:59 -0400 Subject: [PATCH] printf openmp debug message --- machine_learning/kohonen_som.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/machine_learning/kohonen_som.c b/machine_learning/kohonen_som.c index 0c58ee93..7c82f951 100644 --- a/machine_learning/kohonen_som.c +++ b/machine_learning/kohonen_som.c @@ -12,7 +12,7 @@ #include #include #include -#ifdef _OPENMP +#ifdef _OPENMP // check if OpenMP based parallellization is available #include #endif @@ -337,6 +337,11 @@ void test2() /** Main function */ int main(int argc, char **argv) { +#ifdef _OPENMP + printf("Using OpenMP based parallelization\n"); +#else + printf("NOT using OpenMP based parallelization\n"); +#endif test1(); test2(); return 0;