NGSolve / netgen

https://ngsolve.org
GNU Lesser General Public License v2.1
298 stars 131 forks source link

error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization #164

Open andreas-schwab opened 1 year ago

andreas-schwab commented 1 year ago

https://build.opensuse.org/package/live_build_log/openSUSE:Factory:RISCV/netgen/standard/riscv64:

In file included from /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:12, from /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/ngcore.hpp:16: /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp: In instantiation of 'ngcore::SIMD<double, N>::SIMD(const T ...) [with T = {ngcore::SIMD<double, 1>, ngcore::SIMD<double, 1>}; int N = 4]': /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:56:42: required from here /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization 324 : lo(detail::array_range(std::array<double, N>{vals...}, 0)), ^~~~
const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization 324 : lo(detail::array_range(std::array<double, N>{vals...}, 0)), ^~~~
const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization 325 high(detail::array_range(std::array<double, N>{vals...}, N1)) ^~~~
const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 1>' to 'double' in initialization 325 high(detail::array_range(std::array<double, N>{vals...}, N1)) ^~~~
const ngcore::SIMD<double, 1>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: error: static assertion failed: wrong number of arguments 327 static_assert(sizeof...(vals)==N, "wrong number of arguments"); ~~~^~~ /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: note: the comparison reduces to '(2 == 4)' /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp: In instantiation of 'ngcore::SIMD<double, N>::SIMD(const T ...) [with T = {ngcore::SIMD<double, 3>, ngcore::SIMD<double, 3>}; int N = 4]': /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd.hpp:58:42: required from here /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization 324 : lo(detail::array_range(std::array<double, N>{vals...}, 0)), ^~~~
const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:324:56: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization 324 : lo(detail::array_range(std::array<double, N>{vals...}, 0)), ^~~~
const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization 325 high(detail::array_range(std::array<double, N>{vals...}, N1)) ^~~~
const ngcore::SIMD<double, 3>
/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:325:58: error: cannot convert 'const ngcore::SIMD<double, 3>' to 'double' in initialization 325 high(detail::array_range(std::array<double, N>{vals...}, N1)) ^~~~
const ngcore::SIMD<double, 3>

/home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: error: static assertion failed: wrong number of arguments 327 | static_assert(sizeof...(vals)==N, "wrong number of arguments"); | ~~~^~~ /home/abuild/rpmbuild/BUILD/netgen-6.2.2301/libsrc/core/simd_generic.hpp:327:38: note: the comparison reduces to '(2 == 4)'