Giter Site home page Giter Site logo

siddharthrai / arm-sve-benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dssgabriel/arm-sve-benchmarks

0.0 0.0 0.0 54 KB

Performance comparison between small hand-written SVE kernels and compiler-generated ones.

License: MIT License

C 85.47% Assembly 12.23% Makefile 2.30%

arm-sve-benchmarks's Introduction

ARM SVE Benchmarks

This repository gathers some small kernels to benchmark the performance of hand-written SVE code compared to compiler-generated one. Implemented kernels are:

  • Initialization (store);
  • Copy (load, store);
  • Reduction (load, add);
  • Dot product (load, load, mul, add);
  • DAXPY (load, load, load, mul, add, store);
  • Vector sum (load, load, load, add, store);
  • Vector scale (load, load, load, mul, store).

Usage

Note: the provided Makefile uses the armclang compiler, however both clang and gcc have been tested and can be used as well. Keep in mind that the architecture specific flags (AFLAGS) might need to be changed depending on the chosen compiler. See the comparison between compiler flags across architectures for more information.

To build the benchmarks:

make build

You can then execute one of the benchmarks presented above and specify the vectors' size (in bytes), number of iterations and error tolerance through the provided option flags.

Example (reduction benchmark with 64KiB vectors, 100k iterations and an error tolerance of $10^{-14}$:

target/arm_bench -k reduc -s 8192 -i 100000 -e 1e-14

arm-sve-benchmarks's People

Contributors

dssgabriel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.