[clblas] 47/125: fix the flop calculation formula for syr2k
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 5d47c236279cb0a3c3f97a586004c2bfb8533d7e
Author: Timmy <timmy.liu at amd.com>
Date: Thu Dec 12 14:36:07 2013 -0600
fix the flop calculation formula for syr2k
---
src/client/clfunc_xsyr2k.hpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/client/clfunc_xsyr2k.hpp b/src/client/clfunc_xsyr2k.hpp
index d937cd5..414fa09 100644
--- a/src/client/clfunc_xsyr2k.hpp
+++ b/src/client/clfunc_xsyr2k.hpp
@@ -69,12 +69,12 @@ public:
double gflops()
{
- return 2*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
+ return (2*buffer_.k_*buffer_.n_*buffer_.n_+buffer_.n_)/time_in_ns();
}
std::string gflops_formula()
{
- return "(2*N*(N+1)*K)/time";
+ return "(2*K*N*N+N)/time";
}
void setup_buffer(int order_option, int side_option, int uplo_option,
@@ -749,14 +749,14 @@ template<>
double
xSyr2k<cl_float2>::gflops()
{
- return 8*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
+ return (8*buffer_.k_*buffer_.n_*buffer_.n_+2*buffer_.n_)/time_in_ns();
}
template<>
std::string
xSyr2k<cl_float2>::gflops_formula()
{
- return "(8*N*(N+1)*K)/time";
+ return "(8*K*N*N+2*N)/time";
}
template<>
@@ -815,14 +815,14 @@ template<>
double
xSyr2k<cl_double2>::gflops()
{
- return 8*buffer_.n_*(buffer_.n_+1)*buffer_.n_/time_in_ns();
+ return (8*buffer_.k_*buffer_.n_*buffer_.n_+2*buffer_.n_)/time_in_ns();
}
template<>
std::string
xSyr2k<cl_double2>::gflops_formula()
{
- return "(8*N*(N+1)*K)/time";
+ return "(8*K*N*N+2*N)/time";
}
#endif // ifndef CLBLAS_BENCHMARK_XSYR2K_HXX__
--
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