diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-06-14 10:08:23 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-06-14 10:08:23 +0200 |
commit | 9aa29894476aae562bb3d1a85aeff0008c7b1170 (patch) | |
tree | f940f8f788b738fdc2fe49b4ed574f647df977c4 /src | |
parent | 4b3e3dcfe0a2bf97b2703b1f1fd1488c99244ff4 (diff) |
Fixed number of threads launched for AXPY
Diffstat (limited to 'src')
-rw-r--r-- | src/routines/xaxpy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/xaxpy.cc b/src/routines/xaxpy.cc index 309ae3ce..d77bf07e 100644 --- a/src/routines/xaxpy.cc +++ b/src/routines/xaxpy.cc @@ -88,8 +88,8 @@ StatusCode Xaxpy<T>::DoAxpy(const size_t n, const T alpha, status = RunKernel(kernel, global, local); } else { - auto n_ceiled = Ceil(n, db_["WGS"]); - auto global = std::vector<size_t>{CeilDiv(n_ceiled, db_["WPT"])}; + auto n_ceiled = Ceil(n, db_["WGS"]*db_["WPT"]); + auto global = std::vector<size_t>{n_ceiled/db_["WPT"]}; auto local = std::vector<size_t>{db_["WGS"]}; status = RunKernel(kernel, global, local); } |