Skip to content

Commit 4f02b77

Browse files
authored
Fix: Add explicit #include <omp.h> for OpenMP compatibility on certain toolchains (vllm-project#24951)
Signed-off-by: lyd1992 <[email protected]> Signed-off-by: ihb2032 <[email protected]>
1 parent 29283e8 commit 4f02b77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csrc/cpu/cpu_types.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@
1717
#warning "unsupported vLLM cpu implementation"
1818
#endif
1919

20+
#ifdef _OPENMP
21+
#include <omp.h>
22+
#endif
23+
2024
#endif

0 commit comments

Comments
 (0)