Code Monkey home page Code Monkey logo

benchmark-matrix-multiply's Introduction

Explanation

Standard triple for-loop using the CPU.

Performance

  • On Dell XPS 13: FLOPs: 2147483648; Execution time: 5.25 seconds; GFLOPS: 0.4090;

Explanation

Using the CPU with blocking for more temporal and spatial locality. Leverages the L1 cache. More details here.

Performance

  • On Dell XPS 13: FLOPs: 2147483648; Execution time: 3.35 seconds; GFLOPS: 0.6402;

Explanation

Using the GPU with a basic OpenCL kernel.

Performance

  • Platform: NVIDIA TITAN Xp / Device: NVIDIA CUDA: FLOPs: 2147483648; Execution time: 0.04 seconds; GFLOPS: 51.8588;
  • Platform: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz / Device: Intel(R) OpenCL: FLOPs: 2147483648; Execution time: 0.10 seconds; GFLOPS: 20.7495;

Explanation

Use cuBLAS.

Performance

  • Platform: Tesla K80: FLOPs: 2147483648; Execution time: 0.01 seconds; GFLOPS: 304.7607;
  • Platform: RTX 3090: FLOPs: 2147483648; Execution time: 0.00 seconds; GFLOPS: 773.4415;

Explanation

Load blocks into GPU shared memory to reduce global memory accesses. Explained in detail here.

image

Performance

  • Platform: RTX 3090: FLOPs: 2147483648; Execution time: 0.00 seconds; GFLOPS: 951.0809;

TODO

TransposedBlockMatrixMultiplier

Explanation

Similar to BlockMatrixMultiplier, but load the matrix "B" to memory transposed and use SIMD instructions to perform the block dot products.

Performance

  • TODO

NumpyMatrixMultiplier

Explanation

Multiply with a matrix in python using numpy for comparison.

Performance

  • TODO

GPGPUMatrixMultiplier

Explanation

Multiply with a GPU Shader.

Performance

  • TODO

benchmark-matrix-multiply's People

Contributors

georgantas avatar

Watchers

James Cloos avatar  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.