Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
fix bestla openmp macro
Browse files Browse the repository at this point in the history
Signed-off-by: airMeng <[email protected]>
  • Loading branch information
airMeng committed Jan 9, 2024
1 parent 3c8246d commit 468673d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bestla/bestla/bestla_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
#pragma once
#include <type_traits>

#define BTLA_OPENMP ((_OPENMP) && (BTLA_USE_OPENMP))
#define BTLA_OPENMP 0

#ifdef BTLA_USE_OPENMP
#ifdef _OPENMP
#define BTLA_OPENMP 1
#endif
#endif

#if BTLA_OPENMP
#include <omp.h>
#endif
Expand Down

0 comments on commit 468673d

Please sign in to comment.