diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-03-05 11:35:43 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-03-05 11:35:43 +0100 |
commit | c44220835864d2994a2a2b030100125fa00aa378 (patch) | |
tree | 4d16beeda69b216d1c5d70eb359d61c6aa3506f8 /bench/bench_gemm.cpp | |
parent | 5f172cd01f8e4adb790977b4ea5b9da660ca790e (diff) |
clean a bit the bench_gemm files
Diffstat (limited to 'bench/bench_gemm.cpp')
-rw-r--r-- | bench/bench_gemm.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bench/bench_gemm.cpp b/bench/bench_gemm.cpp index 3cb75c17a..5c55d4b7c 100644 --- a/bench/bench_gemm.cpp +++ b/bench/bench_gemm.cpp @@ -20,11 +20,6 @@ typedef Matrix<Scalar,Dynamic,Dynamic> M; extern "C" { #include <bench/btl/libs/C_BLAS/blas.h> - - void sgemm_kernel(int actual_mc, int cols, int actual_kc, float alpha, - float* blockA, float* blockB, float* res, int resStride); - void sgemm_oncopy(int actual_kc, int cols, const float* rhs, int rhsStride, float* blockB); - void sgemm_itcopy(int actual_kc, int cols, const float* rhs, int rhsStride, float* blockB); } static float fone = 1; @@ -72,7 +67,9 @@ int main(int argc, char ** argv) int rep = 1; // number of repetitions per try int tries = 5; // number of tries, we keep the best - int s = 2048; + int s = argc==2 ? std::atoi(argv[1]) : 2048; + std::cout << "Matrix size = " << s << "\n"; + int m = s; int n = s; int p = s; |