summaryrefslogtreecommitdiff
path: root/src/routines/level3/xherk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/routines/level3/xherk.cpp')
-rw-r--r--src/routines/level3/xherk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routines/level3/xherk.cpp b/src/routines/level3/xherk.cpp
index 3063f3bc..77422526 100644
--- a/src/routines/level3/xherk.cpp
+++ b/src/routines/level3/xherk.cpp
@@ -76,7 +76,7 @@ StatusCode Xherk<T,U>::DoHerk(const Layout layout, const Triangle triangle, cons
if (ErrorIn(status)) { return status; }
// Calculates the ceiled versions of n and k
- auto n_ceiled = Ceil(n, db_["NWG"]);
+ auto n_ceiled = Ceil(Ceil(n, db_["MWG"]), db_["NWG"]);
auto k_ceiled = Ceil(k, db_["KWG"]);
// Decides which kernel to run: the upper-triangular or lower-triangular version