[clfft] 02/13: add special logic to split a large 1d into 2d
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Jun 5 01:29:37 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 6259a4973ed12b7a32f5a762c34d822a5d4d7d3c
Author: Timmy <timmy.liu at amd.com>
Date: Wed Apr 27 10:52:58 2016 -0500
add special logic to split a large 1d into 2d
---
src/library/action.transpose.cpp | 2 +-
src/library/plan.cpp | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/library/action.transpose.cpp b/src/library/action.transpose.cpp
index 874cf42..aa7dc92 100644
--- a/src/library/action.transpose.cpp
+++ b/src/library/action.transpose.cpp
@@ -282,7 +282,7 @@ clfftStatus FFTGeneratedTransposeNonSquareAction::generateKernel(FFTRepo& fftRep
//general swap kernel takes care of all ratio
OPENCL_V(clfft_transpose_generator::genSwapKernelGeneral(this->signature, programCode, kernelFuncName, lwSize, reShapeFactor), _T("genSwapKernel() failed!"));
}
- //std::cout << programCode << std::endl;
+
cl_int status = CL_SUCCESS;
cl_device_id Device = NULL;
status = clGetCommandQueueInfo(commQueueFFT, CL_QUEUE_DEVICE, sizeof(cl_device_id), &Device, NULL);
diff --git a/src/library/plan.cpp b/src/library/plan.cpp
index fe780df..5e4de36 100644
--- a/src/library/plan.cpp
+++ b/src/library/plan.cpp
@@ -640,6 +640,15 @@ clfftStatus clfftBakePlan( clfftPlanHandle plHandle, cl_uint numQueues, cl_comma
if (fftPlan->length[0] == 1000000000)
clLengths[1] = 10000;//10,000 x 100,000
+ if (fftPlan->length[0] == 3099363912)
+ clLengths[1] = 78732;//39366 x 78732
+ if (fftPlan->length[0] == 39366)
+ clLengths[1] = 81;//81*486
+ if (fftPlan->length[0] == 78732)
+ clLengths[1] = 162;//162*486
+ if (fftPlan->length[0] == 354294)
+ clLengths[1] = 243;
+
clLengths[0] = fftPlan->length[0]/clLengths[1];
--
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