diff --git a/src/include/gridfire/utils/macros.h b/src/include/gridfire/utils/macros.h index 8c24245b..22add6c8 100644 --- a/src/include/gridfire/utils/macros.h +++ b/src/include/gridfire/utils/macros.h @@ -3,7 +3,11 @@ #if defined(GF_USE_OPENMP) #define GF_OMP_PRAGMA(x) _Pragma(#x) - #define GF_OMP(omp_args, _) GF_OMP_PRAGMA(omp omp_args) + #define GF_OMP(omp_args, extra) GF_OMP_PRAGMA(omp omp_args) extra + #define GF_OMP_MAX_THREADS omp_get_max_threads() + #define GF_OMP_THREAD_NUM omp_get_thread_num() #else #define GF_OMP(_,fallback_args) fallback_args + #define GF_OMP_MAX_THREADS 1 + #define GF_OMP_THREAD_NUM 0 #endif \ No newline at end of file