8000 Fix compile error for RISC-V architecture · numpy/numpy@e07bd6e · GitHub
[go: up one dir, main page]

Skip to content

Commit e07bd6e

Browse files
committed
Fix compile error for RISC-V architecture
1 parent e1c3730 commit e07bd6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

numpy/_core/src/umath/loops_comparison.dispatch.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ template <typename T=uint8_t>
235235
struct OpGeBool {};
236236

237237
#if !defined(__s390x__) && !defined(__arm__) && !defined(__loongarch64) && !defined(__loongarch64__)
238+
#if NPY_SIMD
238239
HWY_INLINE HWY_ATTR vec_u8 simd_pack_b8_b16(vec_u16 a, vec_u16 b) {
239240
return hn::OrderedTruncate2To(u8, a, b);
240241
}
@@ -253,6 +254,7 @@ HWY_INLINE HWY_ATTR vec_u8 simd_pack_b8_b64(vec_u64 a, vec_u64 b, vec_u64 c, vec
253254
auto gh = hn::OrderedTruncate2To(u32, g, h);
254255
return simd_pack_b8_b32(ab, cd, ef, gh);
255256
}
257+
#endif
256258

257259
template <typename T, typename OP>
258260
inline void binary(char **args, size_t len)
@@ -633,4 +635,4 @@ UMATH_IMPL_CMP_UFUNC_TYPES(not_equal, OpNe, OpNeBool)
633635
UMATH_IMPL_CMP_UFUNC_TYPES(less, OpLt, OpLtBool)
634636
UMATH_IMPL_CMP_UFUNC_TYPES(less_equal, OpLe, OpLeBool)
635637
UMATH_IMPL_CMP_UFUNC_TYPES(greater, OpGt, OpGtBool)
636-
UMATH_IMPL_CMP_UFUNC_TYPES(greater_equal, OpGe, OpGeBool)
638+
UMATH_IMPL_CMP_UFUNC_TYPES(greater_equal, OpGe, OpGeBool)

0 commit comments

Comments
 (0)
0