Coder Social home page Coder Social logo

xdliubuaa / cpufp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pigirons/cpufp

0.0 0.0 0.0 24 KB

A CPU tool for benchmarking the peak of floating points

License: GNU General Public License v3.0

Shell 0.47% C 58.58% Assembly 28.27% C++ 12.68%

cpufp's Introduction

cpufp

This is a cpu tool for testing the floating-points peak performance. Now it supports linux and x86-64 platform. It can automatically recognize the x86 instruction sets and select the proper set to do test.

build:
sh build.sh

test:
./cpufp num_threads

clean:
sh clean.sh

[UPDATE] 2019-10-09
Add support of avx512f and avx512_vnni instructions.

Example on Intel i7 1065G7(SunnyCove, 4 cores, 8 threads, [email protected], [email protected]):

$ ./cpufp 1
Thread(s): 1
avx512_vnni int8 perf: 484.2888 gops.
avx512f fp32 perf: 121.2331 gflops.
avx512f fp64 perf: 60.6260 gflops.
fma fp32 perf: 123.6942 gflops.
fma fp64 perf: 61.8030 gflops.
avx fp32 perf: 58.7558 gflops.
avx fp64 perf: 26.9633 gflops.
sse fp32 perf: 31.0415 gflops.
sse fp64 perf: 15.5088 gflops.
$ ./cpufp 4
Thread(s): 4
avx512_vnni int8 perf: 1783.9178 gops.
avx512f fp32 perf: 446.2898 gflops.
avx512f fp64 perf: 223.2302 gflops.
fma fp32 perf: 444.4888 gflops.
fma fp64 perf: 222.1889 gflops.
avx fp32 perf: 204.9414 gflops.
avx fp64 perf: 89.2331 gflops.
sse fp32 perf: 111.3561 gflops.
sse fp64 perf: 55.7209 gflops.

The next version may support ARMv7 and ARMv8 architectures.
Welcome for bug reporting.

cpufp's People

Contributors

pigirons 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.