[arrayfire] 232/408: BUGFIX: Fixing offset issue with CPU element wise operations

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit 1e601326391a82e42ac1bc6fb21d82b2cb6da5f4
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Wed Aug 12 14:57:53 2015 -0400

    BUGFIX: Fixing offset issue with CPU element wise operations
---
 src/backend/cpu/Array.cpp          | 2 +-
 src/backend/cpu/TNJ/BinaryNode.hpp | 6 +++---
 src/backend/cpu/TNJ/BufferNode.hpp | 3 +--
 src/backend/cpu/TNJ/Node.hpp       | 2 +-
 src/backend/cpu/TNJ/ScalarNode.hpp | 2 +-
 src/backend/cpu/TNJ/UnaryNode.hpp  | 4 ++--
 6 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/backend/cpu/Array.cpp b/src/backend/cpu/Array.cpp
index 15515fa..56bd9f8 100644
--- a/src/backend/cpu/Array.cpp
+++ b/src/backend/cpu/Array.cpp
@@ -173,7 +173,7 @@ namespace cpu
 
         Node *n = node.get();
         n->getInfo(length, buf_count, bytes);
-        n->reset(false);
+        n->reset();
 
         if (length > MAX_TNJ_LEN ||
             buf_count >= MAX_BUFFERS ||
diff --git a/src/backend/cpu/TNJ/BinaryNode.hpp b/src/backend/cpu/TNJ/BinaryNode.hpp
index 4b2317f..5c1f5b6 100644
--- a/src/backend/cpu/TNJ/BinaryNode.hpp
+++ b/src/backend/cpu/TNJ/BinaryNode.hpp
@@ -66,10 +66,10 @@ namespace TNJ
             return;
         }
 
-        void reset(bool reset_off=true)
+        void reset()
         {
-            m_lhs->reset(reset_off);
-            m_rhs->reset(reset_off);
+            m_lhs->reset();
+            m_rhs->reset();
             m_is_eval = false;
         }
     };
diff --git a/src/backend/cpu/TNJ/BufferNode.hpp b/src/backend/cpu/TNJ/BufferNode.hpp
index 8598c65..581c047 100644
--- a/src/backend/cpu/TNJ/BufferNode.hpp
+++ b/src/backend/cpu/TNJ/BufferNode.hpp
@@ -70,10 +70,9 @@ namespace TNJ
             return;
         }
 
-        void reset(bool reset_off=true)
+        void reset()
         {
             m_is_eval = false;
-            if (reset_off) off = 0;
         }
     };
 
diff --git a/src/backend/cpu/TNJ/Node.hpp b/src/backend/cpu/TNJ/Node.hpp
index 086094d..09faefd 100644
--- a/src/backend/cpu/TNJ/Node.hpp
+++ b/src/backend/cpu/TNJ/Node.hpp
@@ -42,7 +42,7 @@ namespace TNJ
             bytes = 0;
         }
 
-        virtual void reset(bool reset_off=true) { m_is_eval = false;}
+        virtual void reset() { m_is_eval = false;}
 
         virtual ~Node() {}
     };
diff --git a/src/backend/cpu/TNJ/ScalarNode.hpp b/src/backend/cpu/TNJ/ScalarNode.hpp
index 9bdfc5f..ee2bfbc 100644
--- a/src/backend/cpu/TNJ/ScalarNode.hpp
+++ b/src/backend/cpu/TNJ/ScalarNode.hpp
@@ -42,7 +42,7 @@ namespace TNJ
             return;
         }
 
-        void reset(bool reset_off=true) { m_is_eval = false; }
+        void reset() { m_is_eval = false; }
     };
 }
 
diff --git a/src/backend/cpu/TNJ/UnaryNode.hpp b/src/backend/cpu/TNJ/UnaryNode.hpp
index 23c73e7..035a756 100644
--- a/src/backend/cpu/TNJ/UnaryNode.hpp
+++ b/src/backend/cpu/TNJ/UnaryNode.hpp
@@ -63,9 +63,9 @@ namespace TNJ
             return;
         }
 
-        void reset(bool reset_off=true)
+        void reset()
         {
-            m_child->reset(reset_off);
+            m_child->reset();
             m_is_eval = false;
         }
     };

-- 
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