Skip to content

Are the benchmarks still executable? #32

@QuarticCat

Description

@QuarticCat
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions