cjkkkk / cuda_gemm Goto Github PK
View Code? Open in Web Editor NEWA simple high performance CUDA GEMM implementation.
A simple high performance CUDA GEMM implementation.
Hello,
thanks for your great work! When I set the input matrices to random value, like
`for( int i = 0; i < M * K; i++ ) {
h_A[i] = static_cast (rand()) / static_cast (RAND_MAX);
}
for( int i = 0; i < K * N; i++ ) {
h_B[i] = static_cast <float> (rand()) / static_cast <float> (RAND_MAX);
}`
I got unpassed verification by using benchmark_dense.cu. Do you have any idea about this?
Best regards
Hi, I found that if I try
$ ./builds/benchmark_dense 100 100 100
Grid Dim: (2 2) Block Dim: (16 16)
My gemm Performance= 38.52 GFlop/s, Time= 0.052 msec, Size= 2000000 Ops,
CuBlas Performance= 179.52 GFlop/s, Time= 0.011 msec, Size= 2000000 Ops,
Error! Matrix[00000]=10154469497706623404430887145349054464.00000000, ref=1464674637695684277803204596465664.00000000 error term is > 1.000000E-06
Result= FAIL
ratio= 0.214553
But for larger
$./builds/benchmark_dense 1000 1000 1000
Grid Dim: (16 11) Block Dim: (16 16)
My gemm Performance= 10464.73 GFlop/s, Time= 0.191 msec, Size= 2000000000 Ops,
CuBlas Performance= 15660.82 GFlop/s, Time= 0.128 msec, Size= 2000000000 Ops,
Result= PASS
ratio= 0.668211
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.