Skip to content

Commit

Permalink
Use standard OpenMP macros
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Oct 27, 2023
1 parent dfdf1aa commit 56e93c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/GKlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@



#if defined(__OPENMP__)
#if defined(_OPENMP)
#include <omp.h>
#endif

Expand Down
4 changes: 2 additions & 2 deletions include/gk_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ uint32_t gk_randint32(void);
/*-------------------------------------------------------------
* OpenMP fake functions
*-------------------------------------------------------------*/
#if !defined(__OPENMP__)
#if !defined(_OPENMP)
void omp_set_num_threads(int num_threads);
int omp_get_num_threads(void);
int omp_get_max_threads(void);
Expand All @@ -303,7 +303,7 @@ void omp_set_dynamic(int num_threads);
int omp_get_dynamic(void);
void omp_set_nested(int nested);
int omp_get_nested(void);
#endif /* __OPENMP__ */
#endif /* _OPENMP */


/*-------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions src/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ double gk_WClockSeconds(void)
**************************************************************************/
double gk_CPUSeconds(void)
{
//#ifdef __OPENMP__
#ifdef __OPENMPXXXX__
#ifdef _OPENMP
return omp_get_wtime();
#else
#if defined(WIN32) || defined(__MINGW32__)
Expand Down

0 comments on commit 56e93c9

Please sign in to comment.