[arrayfire] 99/284: Fixed the bug in cpu ireduce kernel function
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit 1313f984734b6cee4d254de34d40abb5682fa42c
Author: pradeep <pradeep at arrayfire.com>
Date: Sun Dec 20 11:17:08 2015 -0500
Fixed the bug in cpu ireduce kernel function
---
src/backend/cpu/kernel/ireduce.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/cpu/kernel/ireduce.hpp b/src/backend/cpu/kernel/ireduce.hpp
index 1f5a51d..8488855 100644
--- a/src/backend/cpu/kernel/ireduce.hpp
+++ b/src/backend/cpu/kernel/ireduce.hpp
@@ -94,13 +94,13 @@ struct ireduce_dim<op, T, 0>
uint * loc = locArray.get();
dim_t stride = istrides[dim];
- MinMaxOp<op, T> Op(in[0], 0);
+ MinMaxOp<op, T> Op(in[inOffset], 0);
for (dim_t i = 0; i < idims[dim]; i++) {
Op(in[inOffset + i * stride], i);
}
- *(out+outOffset) = Op.m_val;
- *(loc+outOffset) = Op.m_idx;
+ out[outOffset] = Op.m_val;
+ loc[outOffset] = Op.m_idx;
}
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list