[arrayfire] 116/248: Call deviceGC before solve tests to minimize memory (tegra)
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.
commit c166c8f49228fca70e673a98734c8065953cccfb
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Oct 8 22:54:56 2015 -0400
Call deviceGC before solve tests to minimize memory (tegra)
---
test/solve_dense.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/test/solve_dense.cpp b/test/solve_dense.cpp
index 8f26570..d78ceb9 100644
--- a/test/solve_dense.cpp
+++ b/test/solve_dense.cpp
@@ -31,6 +31,8 @@ using af::cdouble;
template<typename T>
void solveTester(const int m, const int n, const int k, double eps)
{
+ af::deviceGC();
+
if (noDoubleTests<T>()) return;
#if 1
af::array A = cpu_randu<T>(af::dim4(m, n));
@@ -56,6 +58,8 @@ void solveTester(const int m, const int n, const int k, double eps)
template<typename T>
void solveLUTester(const int n, const int k, double eps)
{
+ af::deviceGC();
+
if (noDoubleTests<T>()) return;
#if 1
af::array A = cpu_randu<T>(af::dim4(n, n));
@@ -81,6 +85,8 @@ void solveLUTester(const int n, const int k, double eps)
template<typename T>
void solveTriangleTester(const int n, const int k, bool is_upper, double eps)
{
+ af::deviceGC();
+
if (noDoubleTests<T>()) return;
#if 1
af::array A = cpu_randu<T>(af::dim4(n, n));
--
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