nova-simd icon indicating copy to clipboard operation
nova-simd copied to clipboard

Testsuite fails to compile on arm64 (macOS)

Open dyfer opened this issue 3 years ago • 0 comments

I've tried building the testsuite and I encountered following errors:

  • missing functions for arm/neon
/path/to/nova-simd/testsuite/vec_test.cpp:104:25: error: no member named 'gen_ones' in 'nova::vec<float>'
    vec_t ones = vec_t::gen_ones();
                 ~~~~~~~^
/path/to/nova-simd/testsuite/vec_test.cpp:134:19: error: use of undeclared identifier 'undenormalize'
    vec_t fixed = undenormalize(denormal);
                  ^
  • ambiguous conversions
/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:323:15: error: conversion from 'int' to
      'const nova::vec<float>' is ambiguous
    if (arg > 0) {
              ^

/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:324:13: error: no viable conversion from
      'nova::vec<float>' to 'bool'
        if (arg < min_positive_value)
            ^~~~~~~~~~~~~~~~~~~~~~~~

/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:329:17: error: use of overloaded operator '>' is
      ambiguous (with operand types 'nova::vec<float>' and '__attribute__((neon_vector_type(4))) float' (vector of 4 'float' values))
        if (arg > -min_positive_value)
            ~~~ ^ ~~~~~~~~~~~~~~~~~~~

In the end, I managed to compile the testsuite by commenting out functions with the errors and all references to them.

dyfer avatar Oct 28 '22 17:10 dyfer