[clblas] 46/125: fix the flops calculation formula

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:21 UTC 2015


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

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

commit 2a0ed3b81afc3c9312171f88548ea2d666fce128
Author: Timmy <timmy.liu at amd.com>
Date:   Thu Dec 12 14:22:39 2013 -0600

    fix the flops calculation formula
---
 src/client/clfunc_xsyr2k.hpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/client/clfunc_xsyr2k.hpp b/src/client/clfunc_xsyr2k.hpp
index 087329e..d937cd5 100644
--- a/src/client/clfunc_xsyr2k.hpp
+++ b/src/client/clfunc_xsyr2k.hpp
@@ -69,13 +69,12 @@ public:
 
     double gflops()
     {
-        return 2.0*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns() +
-            buffer_.n_*(buffer_.n_+1)/time_in_ns();
+        return 2*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
     }
 
     std::string gflops_formula()
     {
-        return "2.0*(M*(M+1)*N+M*(M+1))/time";
+        return "(2*N*(N+1)*K)/time";
     }
 
     void setup_buffer(int order_option, int side_option, int uplo_option,

-- 
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