Git Product home page Git Product logo

megpeak's Introduction

MegPeak

Megpack is a tool for testing processor peak computation, now support arm, x86 and GPU driven by OpenCL processor.

MegPeak can do

MegPeak can do:

  • Peak bandwidth of instruction
  • Instruction delay
  • Memory peak bandwidth
  • Peak bandwidth of arbitrary instruction combination

Although some of the above information can be obtained by querying the data sheet of the chip, and with guidance the theoretical the peak performance can be computed, but in many cases, the detail performance documents of the target processor cannot be obtained. In addition, the result through megpeak is more direct and accurate, and it can test the peak bandwidth of arbitrary instruction combination

BUILD

MegPeak only support Cmake build system and require Cmake version upper than 3.15.2, you can compiler the MegPeak fellow the step:

  • clone or download the project
  • choose a test plantform
    • if you will test x86 processor in linux OS
      • a gcc or clang compier should find by camke through PATH env
    • if you will test arm processor in android OS
      • a ndk is required
        • download the NDK and extract to the host machine
        • set the NDK_ROOT env to the path of extracted NDK director
  • if you dest test OS is android,run the android_build.sh to build it
    • build for armv7
      ./android_build.sh -m armeabi-v7a
    • build for arm64
      ./android_build.sh -m arm64-v8a
    • build with OpenCL
      ./android_build.sh -l -m [arm64-v8a, armeabi-v7a]
  • if you dest test OS is linux,if you want enable OpenCL add -DMEGPEAK_ENABLE_OPENCL=ON to cmake command
    mkdir -p build && cd build
    cmake .. [-DMEGPEAK_ENABLE_OPENCL=ON]
    make
  • after build, the executable file megpeak is stored in build drector

Run

if you compiler the project and get the megpeak, next you can copy or set the megpeak exectuable file to the test machine,and run it and get the help message. bash ./megpeak -h

  • test opencl
    ./megpeak -d opencl
  • test CPU with cpu id
    ./megpeak -d cpu -i 0

Acknowledgement

OpenCL in MegPeak referenced the clpeak project

License

Apache-2.0

megpeak's People

Contributors

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