This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
OSchip
/
OpenBLAS
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
66
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Add trivial gemm test for multithread consistency
tags/v0.3.11^2
Martin Kroeker
GitHub
5 years ago
parent
62f4c84f27
commit
f5fcc5baec
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
20 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+20
-0
cpp_thread_test/gemm64.cpp
+ 20
- 0
cpp_thread_test/gemm64.cpp
View File
@@ -0,0 +1,20 @@
#include <iostream>
#include <cblas.h>
int main ( int argc, char* argv[] ) {
const long n = ((long)1 << 31) - 1;
std::cout << n <<std::endl;
float* A = new float[n];
float* B = new float[n];
float* C = new float[1];
for(long i =0; i <n; i++){
A[i] = 1;
B[i] = 1;
}
cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 1, 1, n, 1.0, A, n, B, 1, 0.0, C, 1);
std::cout << *C <<std::endl;
delete[] A;
delete[] B;
delete[] C;
return 0;
}
Write
Preview
Loading…
Cancel
Save