Giter VIP home page Giter VIP logo

uica's Introduction

uiCA (uops.info Code Analyzer)

uiCA is a simulator that can predict the throughput of basic blocks on recent Intel microarchitectures. In addition to that, it also provides insights into how the code is executed.

uiCA is based on data from uops.info, combined with a detailed pipeline model. Like related tools, it assumes that all memory accesses result in cache hits.

Details on uiCA's pipeline model, as well as a comparison with similar tools, can be found in our paper Accurate Throughput Prediction of Basic Blocks on Recent Intel Microarchitectures.

Web Interface

An online version of uiCA is available at uiCA.uops.info.

Installation

Ubuntu

  • Prerequisites:

    sudo apt-get install gcc python3 python3-pip
    pip3 install plotly
    
  • Installation:

    git clone https://github.com/andreas-abel/uiCA.git
    cd uiCA
    ./setup.sh
    
  • Update:

    git pull
    ./setup.sh
    

Windows

  • Prerequisites:

  • Installation:

    git clone https://github.com/andreas-abel/uiCA.git
    cd uiCA
    .\setup.cmd
    
  • Update:

    git pull
    .\setup.cmd
    

Example Usage

echo ".intel_syntax noprefix; l: add rax, rbx; add rbx, rax; dec r15; jnz l" > test.asm
as test.asm -o test.o
./uiCA.py test.o -arch SKL

Command-Line Options

The following parameters are optional. Parameter names may be abbreviated if the abbreviation is unique (e.g., -ar may be used instead of -arch).

Option Description
-arch The microarchitecture of the simulated CPU. Available microarchitectures: SNB, IVB, HSW, BDW, SKL, SKX, KBL, CFL, CLX, ICL, TGL, RKL. Alternatively, you can use all to get an overview of the throughputs for all supported microarchitectures. [Default: all]
-iacaMarkers Analyze only the code that is between the IACA_START and IACA_END markers of Intel's IACA tool.
-raw Analyze a file that directly contains the machine code of the benchmark, but no headers or other data.
-trace <filename.html> Generate an HTML file that contains a table with a cycle-by-cycle view of how the instructions are executed.
-graph <filename.html> Generate an HTML file that contains a graph with various performance-related events.
-alignmentOffset Alignment offset (relative to a 64-Byte cache line). The option all provides an overview of the throughputs for all possible alignment offsets. [Default: 0]
-TPonly Output only the throughput prediction.
-simpleFrontEnd Simulate a simple front end that is only limited by the issue width.
-noMicroFusion Simulate a CPU variant that does not support micro-fusion.
-noMacroFusion Simulate a CPU variant that does not support macro-fusion.

uica's People

Contributors

andreas-abel avatar davidywu9 avatar rygorous avatar vikmik 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.