markjay4k / morknn Goto Github PK
View Code? Open in Web Editor NEWLicense: The Unlicense
License: The Unlicense
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 ]]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.