printf openmp debug message

This commit is contained in:
Krishna Vedala 2020-06-03 12:55:59 -04:00
parent bc950d502a
commit 5b3063f4d3

View File

@ -12,7 +12,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef _OPENMP
#ifdef _OPENMP // check if OpenMP based parallellization is available
#include <omp.h>
#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;