mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 22:39:52 +03:00
printf openmp debug message
This commit is contained in:
parent
bc950d502a
commit
5b3063f4d3
@ -12,7 +12,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#ifdef _OPENMP
|
#ifdef _OPENMP // check if OpenMP based parallellization is available
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -337,6 +337,11 @@ void test2()
|
|||||||
/** Main function */
|
/** Main function */
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
#ifdef _OPENMP
|
||||||
|
printf("Using OpenMP based parallelization\n");
|
||||||
|
#else
|
||||||
|
printf("NOT using OpenMP based parallelization\n");
|
||||||
|
#endif
|
||||||
test1();
|
test1();
|
||||||
test2();
|
test2();
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user