Code Monkey home page Code Monkey logo

autograd-not-implemented-benchmarking's Introduction

To Replicate

  1. Checkout the correct branch pytorch/pytorch#62450
  2. Build PyTorch
  3. Clone this repo, and run make init in the same directory. Also make sure cmake is looking at the libs for the correct PyTorch (that you just built).
  4. Run sudo cpupower frequency-set --governor performance to disable CPU scaling if necessary (I haven't observed a big difference from this)

Results:

----------- Baseline -----------
2021-08-11T19:56:42-04:00
Running ./example-app-baseline
Run on (32 X 3592.81 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x16)
  L1 Instruction 32 KiB (x16)
  L2 Unified 512 KiB (x16)
  L3 Unified 16384 KiB (x4)
Load Average: 0.71, 0.63, 0.63
-------------------------------------------------------------------
Benchmark                         Time             CPU   Iterations
-------------------------------------------------------------------
op_call_no_requires_grad        699 ns          699 ns       962985
op_call                         679 ns          679 ns      1002686
op_call_boxed                   736 ns          736 ns       961718
----------- Templated -----------
2021-08-11T19:56:45-04:00
Running ./example-app-templated
Run on (32 X 3598.34 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x16)
  L1 Instruction 32 KiB (x16)
  L2 Unified 512 KiB (x16)
  L3 Unified 16384 KiB (x4)
Load Average: 0.71, 0.63, 0.63
-------------------------------------------------------------------
Benchmark                         Time             CPU   Iterations
-------------------------------------------------------------------
op_call_no_requires_grad        847 ns          847 ns       820522
op_call                        1659 ns         1659 ns       421860
op_call_boxed                  1707 ns         1707 ns       404835
----------- Boxed -----------
2021-08-11T19:56:48-04:00
Running ./example-app-boxed
Run on (32 X 4155.37 MHz CPU s)
CPU Caches:
  L1 Data 32 KiB (x16)
  L1 Instruction 32 KiB (x16)
  L2 Unified 512 KiB (x16)
  L3 Unified 16384 KiB (x4)
Load Average: 0.73, 0.64, 0.63
-------------------------------------------------------------------
Benchmark                         Time             CPU   Iterations
-------------------------------------------------------------------
op_call_no_requires_grad        910 ns          910 ns       759083
op_call                        1725 ns         1725 ns       405478
op_call_boxed                  1715 ns         1715 ns       408859

autograd-not-implemented-benchmarking's People

Contributors

soulitzer avatar

Watchers

 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.