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
I tried compiling the simple test program you include in your documentation
#include <iostream>
#include "xsimd/xsimd.hpp"
namespace xs = xsimd;
int main(int argc, char* argv[])
{
xs::batch<double, 4> a(1.5, 2.5, 3.5, 4.5);
xs::batch<double, 4> b(2.5, 3.5, 4.5, 5.5);
auto mean = (a + b) / 2;
std::cout << mean << std::endl;
return 0;
}
I compile using g++ -std=c++14 -o out -I xsimd/include/ main.cpp
where gcc is version 5.4.1 .
I get the following error
In file included from xsimd/types/xsimd_types_include.hpp:15:0,
from xsimd/types/xsimd_traits.hpp:12,
from xsimd/xsimd.hpp:14,
from main.cpp:2:
xsimd/types/xsimd_sse_int32.hpp: In function ‘xsimd::batch<int, 4ul> xsimd::select(const xsimd::batch_bool<int, 4ul>&, const xsimd::batch<int, 4ul>&, const xsimd::batch<int, 4ul>&)’:
xsimd/types/xsimd_sse_int32.hpp:441:70: error: ‘s’ was not declared in this scope
return _mm_or_si128(_mm_and_si128(cond, a), _mm_andnot_si128(s, b));
^
In file included from xsimd/types/xsimd_types_include.hpp:16:0,
from xsimd/types/xsimd_traits.hpp:12,
from xsimd/xsimd.hpp:14,
from main.cpp:2:
xsimd/types/xsimd_sse_int64.hpp: In function ‘xsimd::batch<long int, 2ul> xsimd::select(const xsimd::batch_bool<long int, 2ul>&, const xsimd::batch<long int, 2ul>&, const xsimd::batch<long int, 2ul>&)’:
xsimd/types/xsimd_sse_int64.hpp:460:70: error: ‘s’ was not declared in this scope
return _mm_or_si128(_mm_and_si128(cond, a), _mm_andnot_si128(s, b));
^
I'm sure it's something simple I'm missing.
Thanks!
The text was updated successfully, but these errors were encountered:
You're not missing anything, it is a typo in xsimd. We did not detect it since it happens only when SSE4.1 is not available, which does not seem to be the case for the processors used for the CI.
Hello!
I tried compiling the simple test program you include in your documentation
I compile using
g++ -std=c++14 -o out -I xsimd/include/ main.cpp
where gcc is version 5.4.1 .
I get the following error
I'm sure it's something simple I'm missing.
Thanks!
The text was updated successfully, but these errors were encountered: