[clblas] 17/75: fix a bug in gflops count

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jan 24 23:30:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository clblas.

commit 3ec45fdb3fbf7c2d3a06ec58f01b00ad4b1e70da
Author: tingxingdong <tingxingdong at gmail.com>
Date:   Wed Jan 20 10:14:39 2016 -0600

    fix a bug in gflops count
    
    n*(n+1)*n -> n*(n+1)*k
---
 src/client/clfunc_xsyrk.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/clfunc_xsyrk.hpp b/src/client/clfunc_xsyrk.hpp
index c6f3596..67b3076 100644
--- a/src/client/clfunc_xsyrk.hpp
+++ b/src/client/clfunc_xsyrk.hpp
@@ -64,7 +64,7 @@ public:
 
     double gflops()
     {
-        return buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
+        return buffer_.n_*(buffer_.n_+1)*buffer_.k_/time_in_ns();
     }
 
     std::string gflops_formula()
@@ -645,7 +645,7 @@ template<>
 double
 xSyrk<cl_double2>::gflops()
 {
-        return 4*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
+        return 4*buffer_.n_*(buffer_.n_+1)*buffer_.k_/time_in_ns();
 }
 
 template<>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clblas.git



More information about the debian-science-commits mailing list