You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I just met an issue when trying to build velox on RISC-V, it reported:
error: reinterpret_cast from 'register_type' (aka 'xsimd::types::detail::rvv_bool<long, 128>') to 'xsimd::batch_bool<double, xsimd::default_arch>::register_type' (aka 'xsimd::types::detail::rvv_bool<double, 128>') is not allowed
58 | return reinterpret_cast<
| ^~~~~~~~~~~~~~~~~
59 | xsimd::batch_bool<double, xsimd::default_arch>::register_type>(
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60 | leadingMask64[i].data);
| ~~~~~~~~~~~~~~~~~~~~~~
It is because we are trying to reinterpret_cast a bool vector of long to a bool vector of double, but the underlying type is a struct template for RISC-V (see also here).
Problem description
Hi, I just met an issue when trying to build velox on RISC-V, it reported:
It is because we are trying to
reinterpret_cast
a bool vector oflong
to a bool vector ofdouble
, but the underlying type is a struct template for RISC-V (see also here).velox/velox/common/base/SimdUtil-inl.h
Lines 305 to 312 in 2c9a42e
It works if we change to
static_cast
.System information
Velox System Info v0.0.2
Commit: 2c9a42e
CMake Version: 3.26.4
System: Linux-5.15.152.bsk.1-amd64
Arch: x86_64
C++ Compiler: /usr/bin/c++
C++ Compiler Version: 12.2.0
C Compiler: /usr/bin/cc
C Compiler Version: 12.2.0
CMake Prefix Path: /usr/local;/usr;/;/data00/wpc/software/cmake;/usr/local;/usr/X11R6;/usr/pkg;/opt
CMake log
The text was updated successfully, but these errors were encountered: