Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libclfft
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
libclfft
Commits
9c5a4b48
"README.md" did not exist on "faf03ec992c22b83674e9895150ead08d4da78ae"
Commit
9c5a4b48
authored
12 years ago
by
Heinz-Bernd Eggenstein
Browse files
Options
Downloads
Patches
Plain Diff
added comments in header file for extended plan generation function
parent
dc050e3a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/clFFT.h
+40
-0
40 additions, 0 deletions
include/clFFT.h
with
40 additions
and
0 deletions
include/clFFT.h
+
40
−
0
View file @
9c5a4b48
...
...
@@ -98,6 +98,25 @@ typedef enum
clFFT_InterleavedComplexFormat
=
1
}
clFFT_DataFormat
;
// enum for twiddle factor method selection (essentially different methods to evaluate
// sin(x) and cos(x) on a grid x_k= 2*pi*k/N for some N, k=0..N-1 )
//
// clFFT_native_trig : the original method, using native_sin, native_cos
// : NOTE: precision is hardware dependent, see OpenCL 1.1 spec
// clFFT_sincosfunc : alternative method using sincos function (slow in most
// : implementations, accuracy as defined in OpenCL 1.1 spec
// clFFT_BigLUT : alternative version using Lookup tables stored as part of the
// : plan. The LUTs size grow with O(sqrt(N)) , where N is the
// : total size of the transform (over all dimensions). This should
// : be the most accurate option and have much better performance than
// : with option clFFT_sincosfunc
// clFFT_TaylorLUT : alternative method using a constant size Look-Up-Table and Taylor
// : series approx of sin,cos
// clFFT_RFU{n} : reserved for future use, so that clFFT_TwiddleFactorMethod may use
// : the lower 3 bits of the flags argument to clFFT_CreatePlanAdv.
// : All options are mutually exclusive.
typedef
enum
{
clFFT_native_trig
=
0
,
...
...
@@ -133,6 +152,27 @@ typedef void* clFFT_Plan;
clFFT_Plan
clFFT_CreatePlan
(
cl_context
context
,
clFFT_Dim3
n
,
clFFT_Dimension
dim
,
clFFT_DataFormat
dataFormat
,
cl_int
*
error_code
);
/**
* Extended plan constructor, allows to specify plan options in the flags parameter.
* Currently only values of the enumeration clFFT_TwiddleFactorMethod are supported to
* choose the method for twiddle factor computations.
*
* Param:
* context : cl_context to use
* n : transform lengths in (up to) 3 dimensions
* dim : dimension of the transform
* dataFormat: see clFFT_DataFormat type
* flags : plan generation options. Use OR to specify more than one option
* (currently only the mutually exclusive enumeration values of
* clFFT_TwiddleFactorMethod are supported)
* error_code: pointer to error code, in case of error
*
* Returns:
* freshly allocated clFFT_Plan object holding the plan for the specified transform.
* Can be reused for several FFT plan executions.
* The caller is responsible to deallocate this object after use.
*/
clFFT_Plan
clFFT_CreatePlanAdv
(
cl_context
context
,
clFFT_Dim3
n
,
clFFT_Dimension
dim
,
clFFT_DataFormat
dataFormat
,
unsigned
long
flags
,
cl_int
*
error_code
);
void
clFFT_DestroyPlan
(
clFFT_Plan
plan
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment