[clfft] 06/13: add special cases to the logic of splitint 1d to 2d

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Jun 5 01:29:38 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository clfft.

commit 14d9fa00adcfdf3f657a98c1127d926e63bc0da1
Author: Timmy <timmy.liu at amd.com>
Date:   Tue May 24 12:28:23 2016 -0500

    add special cases to the logic of splitint 1d to 2d
---
 src/library/plan.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/library/plan.cpp b/src/library/plan.cpp
index 7642606..e532663 100644
--- a/src/library/plan.cpp
+++ b/src/library/plan.cpp
@@ -158,6 +158,13 @@ static bool split1D_for_inplace(size_t num, vector<vector<size_t> > &splitNums,
 
 		}
 	}
+	//add some special cases
+	if (num == 2687385600)
+		divide_factor = 2 * 2 * 3 * 3;
+	if (num == 2916000000)
+		divide_factor = 2 * 2 * 3 * 3 * 5 * 5;
+	if (num == 3057647616)
+		divide_factor = 2 * 2 * 3 * 3;
 
 	num = num / divide_factor;
 	//now the remaining num should have even number of pow2, pow3 and pow5 and we can do sqrt

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list