[clblas] 60/125: undate

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri May 29 06:57:22 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 e9dc0f10c2c9239d08aa8e0b5b0210362bdaf80b
Author: Timmy <timmy.liu at amd.com>
Date:   Mon Mar 17 15:32:37 2014 -0500

    undate
---
 src/client/clfunc_xgemm.hpp | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/client/clfunc_xgemm.hpp b/src/client/clfunc_xgemm.hpp
index f5552b2..cb2725d 100644
--- a/src/client/clfunc_xgemm.hpp
+++ b/src/client/clfunc_xgemm.hpp
@@ -522,9 +522,23 @@ public:
         err = clEnqueueWriteBufferRect(queue_, buffer_.buf_c_, CL_TRUE, c_buffer_origin, c_host_origin, c_region, c_buffer_row_pitch,
 										c_buffer_slice_pitch, c_host_row_pitch, c_host_slice_pitch, buffer_.c_, 0, NULL, NULL);
 
-		buffer_.lda_ = 0;
-        buffer_.ldb_ = 0;
-        buffer_.ldc_ = 0;
+		if(buffer_.trans_a_==clblasNoTrans)
+		{
+			buffer_.lda_=buffer_.m_;
+		}
+		else
+		{
+			buffer_.lda_=buffer_.k_;
+		}
+		if(buffer_.trans_b_==clblasNoTrans)
+		{
+			buffer_.ldb_=buffer_.k_;
+		}
+		else
+		{
+			buffer_.ldb_=buffer_.m_;
+		}
+		buffer_.ldc_=buffer_.m_;
 		xGemm_Function(false);
 		/*
 		err = clEnqueueReadBuffer(queue_, buffer_.buf_c_, CL_TRUE,

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