[arrayfire] 203/284: BUGFIX: Initialize buffer counts to 0
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:33 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 aaf554e7162df65bb90412cf08a95a30ebbc43d3
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Mon Jan 11 17:04:20 2016 -0500
BUGFIX: Initialize buffer counts to 0
---
src/backend/MemoryManager.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/backend/MemoryManager.cpp b/src/backend/MemoryManager.cpp
index 696c9af..cea4ae6 100644
--- a/src/backend/MemoryManager.cpp
+++ b/src/backend/MemoryManager.cpp
@@ -31,6 +31,12 @@ MemoryManager::MemoryManager(int num_devices, unsigned MAX_BUFFERS, unsigned MAX
this->debug_mode = env_var[0] != '0';
}
if (this->debug_mode) mem_step_size = 1;
+
+ for (int n = 0; n < num_devices; n++) {
+ memory[n].total_bytes = 0;
+ memory[n].lock_bytes = 0;
+ memory[n].lock_buffers = 0;
+ }
}
void MemoryManager::garbageCollect()
--
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