Git Product home page Git Product logo

morknn's People

Contributors

markjay4k avatar

Watchers

 avatar

morknn's Issues

matmul.so is slower than numpy matmul

the CUDA implementation of matmul is slower than default numpy

multiplying (2, 3) by (3, 3) matrices

CUDA time: 0.113412s

[[ 84.  90.  96.]
 [201. 216. 231.]]

numpy time: 0.000262s

[[ 84.  90.  96.]
 [201. 216. 231.]]
multiplying (2048, 2048) by (2048, 2048) matrices

CUDA time: 0.366512s

[[502.85538 525.7014  510.59598 ... 521.97644 517.87195 512.1503 ]
 [498.99255 515.8612  515.4649  ... 515.0661  516.01544 501.16504]
 [496.60425 528.99615 506.85956 ... 518.7338  513.5538  504.58237]
 ...
 [502.84186 526.9448  520.03143 ... 522.38495 525.60443 513.4673 ]
 [497.5712  530.7139  514.94165 ... 519.9309  520.969   508.90533]
 [518.9467  540.99255 523.964   ... 522.807   537.8712  517.5936 ]]

numpy time: 0.228919s

[[502.8553  525.70074 510.59598 ... 521.97626 517.87213 512.14966]
 [498.99268 515.86145 515.46484 ... 515.06573 516.0156  501.16486]
 [496.6046  528.9963  506.85965 ... 518.734   513.5541  504.5822 ]
 ...
 [502.84216 526.9446  520.03156 ... 522.38513 525.60394 513.4671 ]
 [497.57062 530.71344 514.94165 ... 519.93097 520.9687  508.90564]
 [518.9471  540.9927  523.9641  ... 522.8061  537.8716  517.5933 ]]

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.