VcDevel / std-simd

std::experimental::simd for GCC [ISO/IEC TS 19570:2018]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Are the benchmarks still executable?

QuarticCat opened this issue · comments

version / revision Operating System Compiler & Version Compiler Flags CPU
1.0.0 Arch Linux GCC 11.1.0 see below Ryzen 3700X

I tried to run the benchmarks like below but failed.

$ cd benchmarks
$ CXX=$(which g++) ./run.sh hypot2.cpp

The compiler gives a lot of errors. One of those complains that

bench.h:252:33: error: ‘_S_width’ is not a member of ‘std::experimental::parallelism_v2::_VectorTraitsImpl<__vector(4) float, void>’
  252 |         for (int i = 0; i < VT::_S_width; ++i) {                                         \
      |                                 ^~~~~~~~

So I searched through the code using ripgrep but found nothing in the lib.

$ cd std-simd
$ rg _S_width
benchmarks/bench.h
38:            return std::experimental::_VectorTraits<T>::_S_width;
252:        for (int i = 0; i < VT::_S_width; ++i) {                                         \

I guess the benchmarks have already been broken and kept unmaintained. If I am wrong, then how to run those benchmarks?