Skip to content

Commit 3878de5

Browse files
committed
fix compilation errors
1 parent cbe42e7 commit 3878de5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ simd_tanh_f64(const double *src, npy_intp ssrc, double *dst, npy_intp sdst, npy_
379379

380380
const int nlanes = hn::Lanes(f64);
381381
const vec_f64 qnan = hn::Set(f64, NPY_NAN);
382+
#if defined(NPY_HAVE_RVV)
382383
vec_f64 vec0,vec1;
384+
#endif
383385
for (; len > 0; len -= nlanes, src += ssrc*nlanes, dst += sdst*nlanes) {
384386
vec_f64 x = load_vector<vec_f64>(src, ssrc, len);
385387

numpy/_core/tests/test_cpu_features.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ class Test_LOONGARCH_Features(AbstractTest):
430430
def load_flags(self):
431431
self.load_flags_cpuinfo("Features")
432432

433+
433434
is_riscv = re.match("^(riscv64)", machine, re.IGNORECASE)
434435
@pytest.mark.skipif(not is_linux or not is_riscv, reason="Only for Linux and RISC-V")
435436
class Test_RISCV_Features(AbstractTest):

0 commit comments

Comments
 (0)