diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-06-14 10:08:56 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-06-14 10:08:56 +0200 |
commit | ab0064dab76c83ee9820acb62fa914c493c2563d (patch) | |
tree | 0206f050c71f2ab9b7746694cac87fd8a243e0f0 /src | |
parent | 9aa29894476aae562bb3d1a85aeff0008c7b1170 (diff) |
Fixed number of threads launched for GEMV
Diffstat (limited to 'src')
-rw-r--r-- | src/routines/xgemv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/xgemv.cc b/src/routines/xgemv.cc index e4707987..74851ec9 100644 --- a/src/routines/xgemv.cc +++ b/src/routines/xgemv.cc @@ -100,8 +100,8 @@ StatusCode Xgemv<T>::DoGemv(const Layout layout, const Transpose a_transpose, kernel.SetArgument(13, static_cast<int>(y_inc)); // Launches the kernel - auto m_ceiled = Ceil(m_real, db_["WGS"]); - auto global = std::vector<size_t>{CeilDiv(m_ceiled, db_["WPT"])}; + auto m_ceiled = Ceil(m_real, db_["WGS"]*db_["WPT"]); + auto global = std::vector<size_t>{m_ceiled / db_["WPT"]}; auto local = std::vector<size_t>{db_["WGS"]}; status = RunKernel(kernel, global, local); if (ErrorIn(status)) { return status; } |