Index: numpy-1.14.0/numpy/core/include/numpy/npy_cpu.h =================================================================== --- numpy-1.14.0.orig/numpy/core/include/numpy/npy_cpu.h +++ numpy-1.14.0/numpy/core/include/numpy/npy_cpu.h @@ -18,6 +18,7 @@ * NPY_CPU_ARCEL * NPY_CPU_ARCEB * NPY_CPU_RISCV64 + * NPY_CPU_RISCV */ #ifndef _NPY_CPUARCH_H_ #define _NPY_CPUARCH_H_ @@ -102,6 +103,8 @@ #define NPY_CPU_ARCEB #elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 #define NPY_CPU_RISCV64 +#elif defined(__riscv) + #define NPY_CPU_RISCV #else #error Unknown CPU, please report this to numpy maintainers with \ information about your platform (OS, CPU and compiler)