summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-06-25 20:38:34 +0200
committerCNugteren <web@cedricnugteren.nl>2015-06-25 20:38:34 +0200
commit57c705dbf22b8f942337c1217aa2366a05312250 (patch)
tree3984026d00d880a879700986bdcc7c0bcaf63c84 /src
parent96e40123490404267190d4a91ca35298189ff95b (diff)
Clarified comment
Diffstat (limited to 'src')
-rw-r--r--src/routines/xsyrk.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routines/xsyrk.cc b/src/routines/xsyrk.cc
index 1f645fd5..d8c150fd 100644
--- a/src/routines/xsyrk.cc
+++ b/src/routines/xsyrk.cc
@@ -86,12 +86,15 @@ StatusCode Xsyrk<T>::DoSyrk(const Layout layout, const Triangle triangle, const
// Loads the program from the database
auto& program = GetProgramFromCache();
- // Runs the pre-processing kernel. This transposes the matrices A and B, but also pads zeros to
+ // Runs the pre-processing kernel. This transposes the matrix A, but also pads zeros to
// fill them up until they reach a certain multiple of size (kernel parameter dependent).
status = PadCopyTransposeMatrix(a_one, a_two, a_ld, a_offset, a_buffer,
n_ceiled, k_ceiled, n_ceiled, 0, temp_a,
a_rotated, a_conjugate, true, false, false, program);
if (ErrorIn(status)) { return status; }
+
+ // Furthermore, also creates a (possibly padded) copy of matrix C, since it is not allowed to
+ // modify the other triangle.
status = PadCopyTransposeMatrix(n, n, c_ld, c_offset, c_buffer,
n_ceiled, n_ceiled, n_ceiled, 0, temp_c,
c_rotated, false, true, false, false, program);