[clfft] 121/128: updating header file with documentation changes in the comments, no change in code

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Oct 22 14:54:47 UTC 2015


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

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

commit 76de7c5721797a7a5bb040b5efab7b40fa4e0af4
Author: bragadeesh <bragadeesh.natarajan at amd.com>
Date:   Fri Oct 16 16:38:11 2015 -0700

    updating header file with documentation changes in the comments, no change in code
---
 src/include/clFFT.h | 394 ++++++++++++++++++++++++++--------------------------
 1 file changed, 197 insertions(+), 197 deletions(-)

diff --git a/src/include/clFFT.h b/src/include/clFFT.h
index 81b70c7..db90e1e 100644
--- a/src/include/clFFT.h
+++ b/src/include/clFFT.h
@@ -1,5 +1,5 @@
 /* ************************************************************************
- * Copyright 2013 Advanced Micro Devices, Inc.
+ * Copyright 2013-2015 Advanced Micro Devices, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,8 @@
 
 
 /*! @file clFFT.h
- * clFFT.h defines all of the public interfaces and types that are meant to be used by clFFT clients
- * This is the one public header file that should be consumed by clFFT clients.  It is written to adhere to native "C"
+ * clFFT.h defines all the public interfaces and types that are used by clFFT clients
+ * This is the only public header file that should be consumed by clFFT clients.  It is written to adhere to native "C"
  * interfaces to make clFFT library as portable as possible; it should be callable from C, C++, .NET and Fortran,
  * either with the proper linking or using wrapper classes.
  *
@@ -35,11 +35,11 @@
 
 #include "clFFT.version.h"
 
-/*! This preprocessor definition is the standard way of making exporting APIs
+/*! This preprocessor definition is the standard way to export APIs
  *  from a DLL simpler. All files within this DLL are compiled with the CLFFT_EXPORTS
- *  symbol defined on the command line. This symbol should not be defined on any project
- *  that uses this DLL. This way any other project whose source files include this file see
- *  clfft functions as being imported from a DLL, whereas this DLL sees symbols
+ *  symbol defined on the command line. This symbol must not be defined on any project
+ *  that uses this DLL. This ensures source files of any other project that include this file see
+ *  clfft functions as being imported from a DLL, whereas the DLL sees symbols
  *  defined with this macro as being exported.
  */
 #if defined( _WIN32 )
@@ -58,14 +58,14 @@
 	#define CLFFTAPI
 #endif
 
-/*	In general, you can not use namespaces for strict C compliance, so we prefix our public accessible names
+/*	In general, you cannot use namespaces for strict C compliance, so we prefix our public accessible names
  *	with the string clfft
  */
 
-/*	All functions will return pre-defined error codes, and will NOT throw exceptions to the caller
+/*	All functions return pre-defined error codes, and do NOT throw exceptions to the caller.
  */
 
-/*!  @brief clfft error codes definition, incorporating OpenCL error definitions
+/*!  @brief clfft error codes definition(incorporating OpenCL error definitions)
  *
  *   This enumeration is a superset of the OpenCL error codes.  For example, CL_OUT_OF_HOST_MEMORY,
  *   which is defined in cl.h is aliased as CLFFT_OUT_OF_HOST_MEMORY.  The set of basic OpenCL
@@ -130,65 +130,65 @@ enum clfftStatus_
 	CLFFT_INVALID_PLAN,			/*!< Requested plan could not be found. */
 	CLFFT_DEVICE_NO_DOUBLE,		/*!< Double precision not supported on this device. */
 	CLFFT_DEVICE_MISMATCH,		/*!< Attempt to run on a device using a plan baked for a different device. */
-	CLFFT_ENDSTATUS				/* This value will always be last, and marks the length of clfftStatus. */
+	CLFFT_ENDSTATUS				/* The last value of the enum, and marks the length of clfftStatus. */
 };
 typedef enum clfftStatus_ clfftStatus;
 
-/*!  @brief The dimension of the input and output buffers that will be fed into all FFT transforms */
+/*!  @brief The dimension of the input and output buffers that is fed into all FFT transforms */
 typedef enum clfftDim_
 {
 	CLFFT_1D		= 1,		/*!< 1 Dimensional FFT transform (default). */
 	CLFFT_2D,					/*!< 2 Dimensional FFT transform. */
 	CLFFT_3D,					/*!< 3 Dimensional FFT transform. */
-	ENDDIMENSION			/*!< This value will always be last, and marks the length of clfftDim. */
+	ENDDIMENSION			/*!< The last value of the enum, and marks the length of clfftDim. */
 } clfftDim;
 
-/*!  @brief These are the expected layouts of the buffers */
+/*!  @brief Specify the expected layouts of the buffers */
 typedef enum clfftLayout_
 {
 	CLFFT_COMPLEX_INTERLEAVED	= 1,	/*!< An array of complex numbers, with real and imaginary components together (default). */
-	CLFFT_COMPLEX_PLANAR,				/*!< Arrays of real componets and arrays of imaginary components that have been seperated out. */
-	CLFFT_HERMITIAN_INTERLEAVED,		/*!< Compressed form of complex numbers; complex-conjugates not stored, real and imaginary components in same array. */
-	CLFFT_HERMITIAN_PLANAR,				/*!< Compressed form of complex numbers; complex-conjugates not stored, real and imaginary components in separate arrays. */
+	CLFFT_COMPLEX_PLANAR,				/*!< Separate arrays of real components and imaginary components. */
+	CLFFT_HERMITIAN_INTERLEAVED,		/*!< Compressed form of complex numbers; complex-conjugates are not stored, real and imaginary components are stored in the same array. */
+	CLFFT_HERMITIAN_PLANAR,				/*!< Compressed form of complex numbers; complex-conjugates are not stored, real and imaginary components are stored in separate arrays. */
 	CLFFT_REAL,							/*!< An array of real numbers, with no corresponding imaginary components. */
-	ENDLAYOUT			/*!< This value will always be last, and marks the length of clfftLayout. */
+	ENDLAYOUT			/*!< The last value of the enum, and marks the length of clfftLayout. */
 } clfftLayout;
 
-/*!  @brief This is the expected precision of each FFT.
+/*!  @brief Specify the expected precision of each FFT.
  */
 typedef enum clfftPrecision_
 {
-	CLFFT_SINGLE	= 1,	/*!< An array of complex numbers, with real and imaginary components as floats (default). */
-	CLFFT_DOUBLE,			/*!< An array of complex numbers, with real and imaginary components as doubles. */
+	CLFFT_SINGLE	= 1,	/*!< An array of complex numbers, with real and imaginary components saved as floats (default). */
+	CLFFT_DOUBLE,			/*!< An array of complex numbers, with real and imaginary components saved as doubles. */
 	CLFFT_SINGLE_FAST,		/*!< Faster implementation preferred. */
 	CLFFT_DOUBLE_FAST,		/*!< Faster implementation preferred. */
-	ENDPRECISION	/*!< This value will always be last, and marks the length of clfftPrecision. */
+	ENDPRECISION	/*!< The last value of the enum, and marks the length of clfftPrecision. */
 } clfftPrecision;
 
-/*!  @brief What is the expected direction of each FFT, time or the frequency domains */
+/*!  @brief Specify the expected direction of each FFT, time or the frequency domains */
 typedef enum clfftDirection_
 {
-	CLFFT_FORWARD	= -1,		/*!< FFT transform from the time to the frequency domain. */
-	CLFFT_BACKWARD	= 1,		/*!< FFT transform from the frequency to the time domain. */
+	CLFFT_FORWARD	= -1,		/*!< FFT transform from time to frequency domain. */
+	CLFFT_BACKWARD	= 1,		/*!< FFT transform from frequency to time domain. */
 	CLFFT_MINUS		= -1,		/*!< Alias for the forward transform. */
 	CLFFT_PLUS		= 1,		/*!< Alias for the backward transform. */
-	ENDDIRECTION			/*!< This value will always be last, and marks the length of clfftDirection. */
+	ENDDIRECTION			/*!< The last value of the enum, and marks the length of clfftDirection. */
 } clfftDirection;
 
-/*!  @brief Are the input buffers overwritten with the results */
+/*!  @brief Specify wheter the input buffers are overwritten with results */
 typedef enum clfftResultLocation_
 {
-	CLFFT_INPLACE		= 1,		/*!< The input and output buffers are the same (default). */
-	CLFFT_OUTOFPLACE,				/*!< Seperate input and output buffers. */
-	ENDPLACE				/*!< This value will always be last, and marks the length of clfftPlaceness. */
+	CLFFT_INPLACE		= 1,		/*!< Input and output buffers are the same (default). */
+	CLFFT_OUTOFPLACE,				/*!< Input and output buffers are separate. */
+	ENDPLACE				/*!< The last value of the enum, and marks the length of clfftPlaceness. */
 } clfftResultLocation;
 
-/*! @brief This determines whether the result is returned in original order. It is valid only for
+/*! @brief Determines whether the result is returned in original order. It is valid only for
 dimensions greater than 1. */
 typedef enum clfftResultTransposed_ {
-	CLFFT_NOTRANSPOSE = 1,		/*!< The results are returned in the original preserved order (default) */
+	CLFFT_NOTRANSPOSE = 1,		/*!< The result is returned in the original order (default) */
 	CLFFT_TRANSPOSED,			/*!< The result is transposed where transpose kernel is supported (possibly faster) */
-	ENDTRANSPOSED			/*!< This value will always be last, and marks the length of clfftResultTransposed */
+	ENDTRANSPOSED			/*!< The last value of the enum, and marks the length of clfftResultTransposed */
 } clfftResultTransposed;
 
 /*! 	BitMasks to be used with clfftSetupData.debugFlags */
@@ -197,18 +197,18 @@ typedef enum clfftResultTransposed_ {
 /*! @brief Data structure that can be passed to clfftSetup() to control the behavior of the FFT runtime
  *  @details This structure contains values that can be initialized before instantiation of the FFT runtime
  *  with ::clfftSetup().  To initialize this structure, pass a pointer to a user struct to ::clfftInitSetupData( ),
- *  which will clear the structure and set the version member variables to the current values.
+ *  which clears the structure and sets the version member variables to the current values.
  */
 struct clfftSetupData_
 {
-	cl_uint major;		/*!< Major version number of the project; signifies major API changes. */
-	cl_uint minor;		/*!< Minor version number of the project; minor API changes that could break backwards compatibility. */
-	cl_uint patch;		/*!< Patch version number of the project; Always incrementing number, signifies change over time. */
+	cl_uint major;		/*!< Major version number of the project; signifies possible major API changes. */
+	cl_uint minor;		/*!< Minor version number of the project; minor API changes that can break backward compatibility. */
+	cl_uint patch;		/*!< Patch version number of the project; always incrementing number, signifies change over time. */
 
 	/*! 	Bitwise flags that control the behavior of library debug logic. */
-	cl_ulong debugFlags;  /*! This should be set to zero, except when debugging the clfft library.
-	                       *  <p> debugFlags can be set to CLFFT_DUMP_PROGRAMS, in which case the dynamically generated OpenCL kernels will
-	                       *  be written to text files in the current working directory.  These files will have a *.cl suffix.
+	cl_ulong debugFlags;  /*! This must be set to zero, except when debugging the clfft library.
+	                       *  <p> debugFlags can be set to CLFFT_DUMP_PROGRAMS, in which case the dynamically generated OpenCL kernels are
+	                       *  written to text files in the current working directory.  These files have a *.cl suffix.
 	                       */
 };
 typedef struct clfftSetupData_ clfftSetupData;
@@ -217,8 +217,8 @@ typedef struct clfftSetupData_ clfftSetupData;
 */
 typedef enum clFFTCallbackType_
 {
-	PRECALLBACK,	/*!< Callback function will be invoked only once at the beginning of FFT transform for each point of input */
-	POSTCALLBACK	/*!< Callback function will be invoked only once at the end of FFT transform for each point of output */
+	PRECALLBACK,	/*!< Callback function is invoked only once for every point of input at the beginning of FFT transform. */
+	POSTCALLBACK	/*!< Callback function is invoked only once for every point of output at the end of FFT transform. */
 }clFFTCallbackType;
 
 /*!  @brief An abstract handle to the object that represents the state of the FFT(s) */
@@ -227,10 +227,10 @@ typedef size_t clfftPlanHandle;
 #ifdef __cplusplus
 extern "C" {
 #endif
-	/*! @brief Initialize an clfftSetupData struct for the client
-	 *  @details clfftSetupData is passed to clfftSetup to control behavior of the FFT runtime
-	 *  @param[out] setupData Data structure is cleared, initialized with version information and default values
-	 *  @return Enum describing error condition; superset of OpenCL error codes
+	/*! @brief Initialize a clfftSetupData struct for the client
+	 *  @details clfftSetupData is passed to clfftSetup to control behavior of the FFT runtime.
+	 *  @param[out] setupData Data structure is cleared and initialized with version information and default values
+	 *  @return Enum describes the error condition; superset of OpenCL error codes
 	 */
 	__inline clfftStatus clfftInitSetupData( clfftSetupData* setupData )
 	{
@@ -242,22 +242,22 @@ extern "C" {
 		return	CLFFT_SUCCESS;
 	}
 
-	/*! @brief Initialize internal FFT resources.
-	 *  @details AMD's FFT implementation caches kernels, programs and buffers for its internal use.
-	 *  @param[in] setupData Data structure that can be passed into the setup routine to control FFT generation behavior
+	/*! @brief Initialize the internal FFT resources.
+	 *  @details The internal resources include FFT implementation caches kernels, programs, and buffers.
+	 *  @param[in] setupData Data structure that is passed into the setup routine to control FFT generation behavior
 	 * 	and debug functionality
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetup( const clfftSetupData* setupData );
 
 	/*! @brief Release all internal resources.
-	 *  @details Call when client is done with this FFT library, allowing the library to destroy all resources it has cached
+	 *  @details Called when client is done with the FFT library, allowing the library to destroy all resources it has cached
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftTeardown( );
 
 	/*! @brief Query the FFT library for version information
-	 *  @details Return the major, minor and patch version numbers associated with this FFT library
+	 *  @details Returns the major, minor and patch version numbers associated with the FFT library
 	 *  @param[out] major Major functionality change
 	 *  @param[out] minor Minor functionality change
 	 *  @param[out] patch Bug fixes, documentation changes, no new features introduced
@@ -270,42 +270,42 @@ extern "C" {
 	 * 	and buffers and associate them with buffers of specified dimensions.
 	 *  @param[out] plHandle Handle to the newly created plan
 	 *  @param[in] context Client is responsible for providing an OpenCL context for the plan
-	 *  @param[in] dim The dimensionality of the FFT transform; describes how many elements are in the array
-	 *  @param[in] clLengths An array of lengths, of size 'dim'.  Each value describes the length of additional dimensions
+	 *  @param[in] dim Dimensionality of the FFT transform; describes how many elements are in the array
+	 *  @param[in] clLengths An array of length of size 'dim';  each array value describes the length of each dimension
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftCreateDefaultPlan( clfftPlanHandle* plHandle, cl_context context, const clfftDim dim,
 								const size_t* clLengths );
 
 	/*! @brief Create a copy of an existing plan.
-	 *  @details This API allows a client to create a new plan based upon an existing plan.  This is a convenience function
-	 *  provided for quickly creating plans that are similar, but may differ slightly.
+	 *  @details This API allows a client to create a new plan based upon an existing plan.  This function can be used to
+	 *  quickly create plans that are similar, but may differ slightly.
 	 *  @param[out] out_plHandle Handle to the newly created plan that is based on in_plHandle
 	 *  @param[in] new_context Client is responsible for providing a new context for the new plan
-	 *  @param[in] in_plHandle Handle to a plan to be copied, previously created
+	 *  @param[in] in_plHandle Handle to a previously created plan that is to be copied
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftCopyPlan( clfftPlanHandle* out_plHandle, cl_context new_context, clfftPlanHandle in_plHandle );
 
 	/*! @brief Prepare the plan for execution.
-	 *  @details After all plan parameters are set, the client has the option of 'baking' the plan, which tells the runtime that
-	 *  no more changes to the plan's parameters are expected, and the OpenCL kernels should be compiled.  This optional function
-	 *  allows the client application to perform this function when the application is being initialized instead of on the first
+	 *  @details After all plan parameters are set, the client has the option of 'baking' the plan, which informs the runtime that
+	 *  no more change to the parameters of the plan is expected, and the OpenCL kernels can be compiled.  This optional function
+	 *  allows the client application to perform the OpenCL kernel compilation when the application is initialized instead of during the first
 	 *  execution.
-	 *  At this point, the clfft runtime will apply all implimented optimizations, possibly including
+	 *  At this point, the clfft runtime applies all implimented optimizations, including
 	 *  running kernel experiments on the devices in the plan context.
-	 *  <p>  Users should assume that this function will take a long time to execute.  If a plan is not baked before being executed,
-	 *  users should assume that the first call to clfftEnqueueTransform will take a long time to execute.
-	 *  <p>  If any significant parameter of a plan is changed after the plan is baked (by a subsequent call to one of
-	 *  the clfftSetPlan____ functions), that will not be considered an error.  Instead, the plan will revert back to
+	 *  <p>  This function takes a long time to execute. If a plan is not baked before being executed,
+	 *  the first call to clfftEnqueueTransform takes a long time to execute.
+	 *  <p>  If any significant parameter of a plan is changed after the plan is baked (by a subsequent call to any one of
+	 *  the functions that has the prefix "clfftSetPlan"), it is not considered an error.  Instead, the plan reverts back to
 	 *  the unbaked state, discarding the benefits of the baking operation.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] numQueues Number of command queues in commQueueFFT; 0 is a valid value, in which case client does not want
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] numQueues Number of command queues in commQueueFFT; 0 is a valid value, in which case the client does not want
 	 * 	the runtime to run load experiments and only pre-calculate state information
 	 *  @param[in] commQueueFFT An array of cl_command_queues created by the client; the command queues must be a proper subset of
 	 * 	the devices included in the plan context
 	 *  @param[in] pfn_notify A function pointer to a notification routine. The notification routine is a callback function that
-	 *  an application can register and which will be called when the program executable has been built (successfully or unsuccessfully).
+	 *  an application can register and is called when the program executable is built (successfully or unsuccessfully).
 	 *  Currently, this parameter MUST be NULL or nullptr.
 	 *  @param[in] user_data Passed as an argument when pfn_notify is called.
 	 *  Currently, this parameter MUST be NULL or nullptr.
@@ -315,277 +315,277 @@ extern "C" {
 							void (CL_CALLBACK *pfn_notify)(clfftPlanHandle plHandle, void *user_data), void* user_data );
 
 	/*! @brief Release the resources of a plan.
-	 *  @details A plan may include kernels, programs and buffers associated with it that consume memory.  When a plan
-	 *  is not needed anymore, the client should release the plan.
-	 *  @param[in,out] plHandle Handle to a plan previously created
+	 *  @details A plan may include resources, such as kernels, programs, and buffers that consume memory.  When a plan
+	 *  is no more needed, the client must release the plan.
+	 *  @param[in,out] plHandle Handle to a previously created plan
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftDestroyPlan( clfftPlanHandle* plHandle );
 
 	/*! @brief Retrieve the OpenCL context of a previously created plan.
-	 *  @details User should pass a reference to an cl_context variable, which will be changed to point to a
+	 *  @details The user must pass a reference to a cl_context variable, which is modified to point to a
 	 *  context set in the specified plan.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] context Reference to user allocated cl_context, which will point to context set in plan
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] context Reference to the user allocated cl_context, which points to context set in the plan
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanContext( const clfftPlanHandle plHandle, cl_context* context );
 
 	/*! @brief Retrieve the floating point precision of the FFT data
-	 *  @details User should pass a reference to an clfftPrecision variable, which will be set to the
+	 *  @details The user must pass a reference to a clfftPrecision variable, which is set to the
 	 *  precision of the FFT complex data in the plan.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] precision Reference to user clfftPrecision enum
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] precision Reference to the user clfftPrecision enum
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanPrecision( const clfftPlanHandle plHandle, clfftPrecision* precision );
 
 	/*! @brief Set the floating point precision of the FFT data
-	 *  @details Set the plan property which will be the precision of the FFT complex data in the plan.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] precision Reference to user clfftPrecision enum
+	 *  @details Sets the floating point precision of the FFT complex data in the plan.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] precision Reference to the user clfftPrecision enum
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanPrecision( clfftPlanHandle plHandle, clfftPrecision precision );
 
-	/*! @brief Retrieve the scaling factor that should be applied to the FFT data
-	 *  @details User should pass a reference to an cl_float variable, which will be set to the
-	 *  floating point scaling factor that will be multiplied across the FFT data.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dir Which direction does the scaling factor apply to
-	 *  @param[out] scale Reference to user cl_float variable
+	/*! @brief Retrieve the scaling factor that is applied to the FFT data
+	 *  @details The user must pass a reference to a cl_float variable, which is set to the
+	 *  floating point scaling factor that is multiplied across the FFT data.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dir Direction of the applied scaling factor
+	 *  @param[out] scale Reference to the user cl_float variable
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanScale( const clfftPlanHandle plHandle, clfftDirection dir, cl_float* scale );
 
-	/*! @brief Set the scaling factor that should be applied to the FFT data
-	 *  @details Set the plan property which will be the floating point scaling factor that will be
+	/*! @brief Set the scaling factor that is applied to the FFT data
+	 *  @details Sets the floating point scaling factor that is
 	 *  multiplied across the FFT data.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dir Which direction does the scaling factor apply to
-	 *  @param[in] scale Reference to user cl_float variable
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dir Direction of the applied scaling factor
+	 *  @param[in] scale Reference to the user cl_float variable
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanScale( clfftPlanHandle plHandle, clfftDirection dir, cl_float scale );
 
-	/*! @brief Retrieve the number of discrete arrays that this plan can handle concurrently
-	 *  @details User should pass a reference to an cl_uint variable, which will be set to the
-	 *  number of discrete arrays (1D or 2D) that will be batched together for this plan
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] batchSize How many discrete number of FFT's are to be performed
+	/*! @brief Retrieve the number of discrete arrays that the plan can concurrently handle
+	 *  @details The user must pass a reference to a cl_uint variable, which is set to the
+	 *  number of discrete arrays (1D or 2D) that is batched together for the plan
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] batchSize Number of discrete FFTs performed
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanBatchSize( const clfftPlanHandle plHandle, size_t* batchSize );
 
-	/*! @brief Set the number of discrete arrays that this plan can handle concurrently
-	 *  @details Set the plan property which will be set to the number of discrete arrays (1D or 2D)
-	 *  that will be batched together for this plan
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] batchSize How many discrete number of FFT's are to be performed
+	/*! @brief Set the number of discrete arrays that the plan can concurrently handle
+	 *  @details Sets the plan property which sets the number of discrete arrays (1D or 2D)
+	 *  that is batched together for the plan
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] batchSize Number of discrete FFTs performed
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanBatchSize( clfftPlanHandle plHandle, size_t batchSize );
 
-	/*! @brief Retrieve the dimensionality of FFT's to be transformed in the plan
-	 *  @details Queries a plan object and retrieves the dimensionality that the plan is set for.  A size is returned to
-	 *  help the client allocate the proper storage to hold the dimensions in a further call to clfftGetPlanLength
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] dim The dimensionality of the FFT's to be transformed
-	 *  @param[out] size Value used to allocate an array to hold the FFT dimensions.
+	/*! @brief Retrieve the dimensionality of the data that is transformed
+	 *  @details Queries a plan object and retrieves the value of the dimensionality that the plan is set for.  A size is returned to
+	 *  help the client allocate sufficient storage to hold the dimensions in a further call to clfftGetPlanLength
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] dim The dimensionality of the FFT to be transformed
+	 *  @param[out] size Value to allocate an array to hold the FFT dimensions.
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanDim( const clfftPlanHandle plHandle, clfftDim* dim, cl_uint* size );
 
-	/*! @brief Set the dimensionality of FFT's to be transformed by the plan
-	 *  @details Set the dimensionality of FFT's to be transformed by the plan
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimensionality of the FFT's to be transformed
+	/*! @brief Set the dimensionality of the data that is transformed
+	 *  @details Set the dimensionality of the data that is transformed by the plan
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimensionality of the FFT to be transformed
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanDim( clfftPlanHandle plHandle, const clfftDim dim );
 
 	/*! @brief Retrieve the length of each dimension of the FFT
-	 *  @details User should pass a reference to a size_t array, which will be set to the
+	 *  @details The user must pass a reference to a size_t array, which is set to the
 	 *  length of each discrete dimension of the FFT
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the length parameters; describes how many elements are in the array
-	 *  @param[out] clLengths An array of lengths, of size 'dim'.  Each array value describes the length of each dimension
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim Dimension of the FFT; describes how many elements are in the clLengths array
+	 *  @param[out] clLengths An array of length of size 'dim';  each array value describes the length of each dimension
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanLength( const clfftPlanHandle plHandle, const clfftDim dim, size_t* clLengths );
 
 	/*! @brief Set the length of each dimension of the FFT
-	 *  @details Set the plan property which will be the length of each discrete dimension of the FFT
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the length parameters; describes how many elements are in the array
-	 *  @param[in] clLengths An array of lengths, of size 'dim'.  Each value describes the length of additional dimensions
+	 *  @details Sets the plan property which is the length of each discrete dimension of the FFT
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimension of the FFT; describes how many elements are in the clLengths array
+	 *  @param[in] clLengths An array of length of size 'dim';  each array value describes the length of each dimension
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanLength( clfftPlanHandle plHandle, const clfftDim dim, const size_t* clLengths );
 
-	/*! @brief Retrieve the distance between consecutive elements for input buffers in a dimension.
-	 *  @details Depending on how the dimension is set in the plan (for 2D or 3D FFT's), strideY or strideZ can be safely
+	/*! @brief Retrieve the distance between consecutive elements of input buffers in each dimension.
+	 *  @details Depending on how the dimension is set in the plan (for 2D or 3D FFT), strideY or strideZ can be safely
 	 *  ignored
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the stride parameters; describes how many elements are in the array
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimension of the stride parameters; provides the number of elements in the array
 	 *  @param[out] clStrides An array of strides, of size 'dim'.
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanInStride( const clfftPlanHandle plHandle, const clfftDim dim, size_t* clStrides );
 
-	/*! @brief Set the distance between consecutive elements for input buffers in a dimension.
-	 *  @details Set the plan properties which will be the distance between elements in a given dimension
+	/*! @brief Set the distance between consecutive elements of input buffers in each dimension.
+	 *  @details Set the plan properties which is the distance between elements in all dimensions of the input buffer
 	 *  (units are in terms of clfftPrecision)
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the stride parameters; describes how many elements are in the array
-	 *  @param[in] clStrides An array of strides, of size 'dim'. Usually strideX=1 so that successive elements in the first dimension are stored contiguously.
-	 * 	Typically strideY=LenX, strideZ=LenX*LenY such that successive elements in the second and third dimensions are stored in packed format.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimension of the stride parameters; provides the number of elements in the clStrides array
+	 *  @param[in] clStrides An array of strides of size 'dim'. Usually, strideX=1 so that successive elements in the first dimension are stored contiguously.
+	 * 	Typically, strideY=LenX and strideZ=LenX*LenY with the successive elements in the second and third dimensions stored in packed format.
 	 *  See  @ref DistanceStridesandPitches for details.
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanInStride( clfftPlanHandle plHandle, const clfftDim dim, size_t* clStrides );
 
-	/*! @brief Retrieve the distance between consecutive elements for output buffers in a dimension.
-	 *  @details Depending on how the dimension is set in the plan (for 2D or 3D FFT's), strideY or strideZ can be safely
+	/*! @brief Retrieve the distance between consecutive elements of output buffers in each dimension.
+	 *  @details Depending on how the dimension is set in the plan (for 2D or 3D FFT), strideY or strideZ can be safely
 	 *  ignored
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the stride parameters; describes how many elements are in the array
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimension of the stride parameters; provides the number of elements in the clStrides array
 	 *  @param[out] clStrides An array of strides, of size 'dim'.
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanOutStride( const clfftPlanHandle plHandle, const clfftDim dim, size_t* clStrides );
 
-	/*! @brief Set the distance between consecutive elements for output buffers in a dimension.
-	 *  @details Set the plan properties which will be the distance between elements in a given dimension
+	/*! @brief Set the distance between consecutive elements of output buffers in a dimension.
+	 *  @details Sets the plan properties which is the distance between elements in all dimensions of the output buffer
 	 *  (units are in terms of clfftPrecision)
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dim The dimension of the stride parameters; describes how many elements are in the array
-	 *  @param[in] clStrides An array of strides, of size 'dim'.  Usually strideX=1 so that successive elements in the first dimension are stored contiguously.
-	 * 	Typically strideY=LenX, strideZ=LenX*LenY such that successive elements in the second and third dimensions are stored in packed format.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dim The dimension of the stride parameters; provides the number of elements in the clStrides array
+	 *  @param[in] clStrides An array of strides of size 'dim'.  Usually, strideX=1 so that successive elements in the first dimension are stored contiguously.
+	 * 	Typically, strideY=LenX and strideZ=LenX*LenY cause the successive elements in the second and third dimensions be stored in packed format.
 	 *  @sa clfftSetPlanInStride
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanOutStride( clfftPlanHandle plHandle, const clfftDim dim, size_t* clStrides );
 
-	/*! @brief Retrieve the distance between Array objects
+	/*! @brief Retrieve the distance between array objects
 	 *  @details Pitch is the distance between each discrete array object in an FFT array. This is only used
 	 *  for 'array' dimensions in clfftDim; see clfftSetPlanDimension (units are in terms of clfftPrecision)
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] iDist The distance between the beginning elements of the discrete array objects in memory on input.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] iDist The distance between the beginning elements of the discrete array objects in input buffer.
 	 *  For contiguous arrays in memory, iDist=(strideX*strideY*strideZ)
-	 *  @param[out] oDist The distance between the beginning elements of the discrete array objects in memory on output.
+	 *  @param[out] oDist The distance between the beginning elements of the discrete array objects in output buffer.
 	 *  For contiguous arrays in memory, oDist=(strideX*strideY*strideZ)
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanDistance( const clfftPlanHandle plHandle, size_t* iDist, size_t* oDist );
 
-	/*! @brief Set the distance between Array objects
+	/*! @brief Set the distance between array objects
 	 *  @details Pitch is the distance between each discrete array object in an FFT array. This is only used
 	 *  for 'array' dimensions in clfftDim; see clfftSetPlanDimension (units are in terms of clfftPrecision)
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] iDist The distance between the beginning elements of the discrete array objects in memory on input.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] iDist The distance between the beginning elements of the discrete array objects in input buffer.
 	 *  For contiguous arrays in memory, iDist=(strideX*strideY*strideZ)
-	 *  @param[out] oDist The distance between the beginning elements of the discrete array objects in memory on output.
+	 *  @param[out] oDist The distance between the beginning elements of the discrete array objects in output buffer.
 	 *  For contiguous arrays in memory, oDist=(strideX*strideY*strideZ)
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanDistance( clfftPlanHandle plHandle, size_t iDist, size_t oDist );
 
 	/*! @brief Retrieve the expected layout of the input and output buffers
-	 *  @details Output buffers can be filled with either hermitian or complex numbers.  Complex numbers can be stored
-	 *  in various layouts; this informs the FFT engine what layout to produce on output
-	 *  @param[in] plHandle Handle to a plan previously created
+	 *  @details Input and output buffers can be filled with either Hermitian, complex, or real numbers.  Complex numbers are stored
+	 *  in various layouts; this function retrieves the layouts used by input and output
+	 *  @param[in] plHandle Handle to a previously created plan
 	 *  @param[out] iLayout Indicates how the input buffers are laid out in memory
 	 *  @param[out] oLayout Indicates how the output buffers are laid out in memory
 	 */
 	CLFFTAPI clfftStatus	clfftGetLayout( const clfftPlanHandle plHandle, clfftLayout* iLayout, clfftLayout* oLayout );
 
 	/*! @brief Set the expected layout of the input and output buffers
-	 *  @details Output buffers can be filled with either hermitian or complex numbers.  Complex numbers can be stored
-	 *  in various layouts; this informs the FFT engine what layout to produce on output
-	 *  @param[in] plHandle Handle to a plan previously created
+	 *  @details Input and output buffers can be filled with either Hermitian, complex, or real numbers.  Complex numbers can be stored
+	 *  in various layouts; this function informs the library what layouts to use for input and output
+	 *  @param[in] plHandle Handle to a previously created plan
 	 *  @param[in] iLayout Indicates how the input buffers are laid out in memory
 	 *  @param[in] oLayout Indicates how the output buffers are laid out in memory
 	 */
 	CLFFTAPI clfftStatus	clfftSetLayout( clfftPlanHandle plHandle, clfftLayout iLayout, clfftLayout oLayout );
 
-	/*! @brief Retrieve whether the input buffers are going to be overwritten with results
-	 *  @details If the setting is to do an in-place transform, the input buffers are overwritten with the results of the
-	 *  transform.  If the setting is for out-of-place transforms, the engine knows to look for separate output buffers
+	/*! @brief Retrieve whether the input buffers are to be overwritten with results
+	 *  @details If the setting performs an in-place transform, the input buffers are overwritten with the results of the
+	 *  transform.  If the setting performs an out-of-place transforms, the library looks for separate output buffers
 	 *  on the Enqueue call.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] placeness Tells the FFT engine to clobber the input buffers or to expect output buffers for results
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] placeness Informs the library to either overwrite the input buffers with results or to write them in separate output buffers
 	 */
 	CLFFTAPI clfftStatus	clfftGetResultLocation( const clfftPlanHandle plHandle, clfftResultLocation* placeness );
 
-	/*! @brief Set whether the input buffers are going to be overwritten with results
-	 *  @details If the setting is to do an in-place transform, the input buffers are overwritten with the results of the
-	 *  transform.  If the setting is for out-of-place transforms, the engine knows to look for separate output buffers
+	/*! @brief Set whether the input buffers are to be overwritten with results
+	 *  @details If the setting performs an in-place transform, the input buffers are overwritten with the results of the
+	 *  transform.  If the setting performs an out-of-place transforms, the library looks for separate output buffers
 	 *  on the Enqueue call.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] placeness Tells the FFT engine to clobber the input buffers or to expect output buffers for results
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] placeness Informs the library to either overwrite the input buffers with results or to write them in separate output buffers
 	 */
 	CLFFTAPI clfftStatus	clfftSetResultLocation( clfftPlanHandle plHandle, clfftResultLocation placeness );
 
-	/*! @brief Retrieve the final transpose setting of a muti-dimensional FFT
-	 *  @details A multi-dimensional FFT typically transposes the data several times during calculation.  If the client
-	 *  does not care about the final transpose to put data back in proper dimension, the final transpose can be skipped
-	 *  for possible speed improvements
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[out] transposed Parameter specifies whether the final transpose can be skipped
+	/*! @brief Retrieve the final transpose setting of a multi-dimensional FFT
+	 *  @details A multi-dimensional FFT transposes the data several times during calculation. If the client
+	 *  does not care about the final transpose, to put data back in proper dimension, the final transpose can be skipped
+	 *  to improve speed
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[out] transposed Specifies whether the final transpose can be skipped
 	 */
 	CLFFTAPI clfftStatus	clfftGetPlanTransposeResult( const clfftPlanHandle plHandle, clfftResultTransposed * transposed );
 
-	/*! @brief Set the final transpose setting of a muti-dimensional FFT
-	 *  @details A multi-dimensional FFT typically transposes the data several times during calculation.  If the client
-	 *  does not care about the final transpose to put data back in proper dimension, the final transpose can be skipped
-	 *  for possible speed improvements
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] transposed Parameter specifies whether the final transpose can be skipped
+	/*! @brief Set the final transpose setting of a multi-dimensional FFT
+	 *  @details A multi-dimensional FFT transposes the data several times during calculation.  If the client
+	 *  does not care about the final transpose, to put data back in proper dimension, the final transpose can be skipped
+	 *  to improve speed
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] transposed Specifies whether the final transpose can be skipped
 	 */
 	CLFFTAPI clfftStatus	clfftSetPlanTransposeResult( clfftPlanHandle plHandle, clfftResultTransposed transposed );
 
 
 	/*! @brief Get buffer size (in bytes), which may be needed internally for an intermediate buffer
-	 *  @details Very large FFT transforms may need multiple passes, and the operation would need a temporary buffer to hold
-	 *  intermediate results. This function is only valid after the plan is baked, otherwise an invalid operation error
-	 *  is returned. If buffersize returns as 0, the runtime needs no temporary buffer.
-	 *  @param[in] plHandle Handle to a plan previously created
+	 *  @details Very large FFT transforms may need multiple passes, and the operation needs a temporary buffer to hold
+	 *  intermediate results. This function is only valid after the plan is baked, otherwise, an invalid operation error
+	 *  is returned. If the returned buffersize is 0, the runtime needs no temporary buffer.
+	 *  @param[in] plHandle Handle to a previously created plan
 	 *  @param[out] buffersize Size in bytes for intermediate buffer
 	 */
 	CLFFTAPI clfftStatus clfftGetTmpBufSize( const clfftPlanHandle plHandle, size_t* buffersize );
 
 	/*! @brief Register the callback parameters
-	 *  @details Client can provide a callback function to do custom processing when reading input data and/or 
-	 *  when writing output data. The callback function is provided as a string.
+	 *  @details Client can provide a callback function to do custom processing while reading input data and/or
+	 *  writing output data. The callback function is provided as a string.
 	 *  clFFT library incorporates the callback function string into the main FFT kernel. This function is used
 	 *  by client to set the necessary parameters for callback
-	 *  @param[in] plHandle Handle to a plan previously created
+	 *  @param[in] plHandle Handle to a previously created plan
 	 *  @param[funcName] Callback function name
 	 *  @param[funcString] Callback function in string form
-	 *  @param[localMemSize] Optional - Local memory size if needed by callback. Pass 0 if local memory not needed by callback
+	 *  @param[localMemSize] Optional - Size (bytes) of the local memory used by callback function; pass 0 if no local memory is used
 	 *  @param[callbackType] Type of callback - Pre-Callback or Post-Callback
 	 *  @param[userdata] Supplementary data if any used by callback function
 	 *  @param[numUserdataBuffers] Number of userdata buffers
 	 */
-	CLFFTAPI clfftStatus clfftSetPlanCallback(clfftPlanHandle plHandle, const char* funcName, const char* funcString,  
+	CLFFTAPI clfftStatus clfftSetPlanCallback(clfftPlanHandle plHandle, const char* funcName, const char* funcString,
 										int localMemSize, clFFTCallbackType callbackType, cl_mem *userdata, int numUserdataBuffers);
 
 
 	/*! @brief Enqueue an FFT transform operation, and return immediately (non-blocking)
-	 *  @details This transform API is the function that actually computes the FFT transfrom. It is non-blocking as it
-	 *  only enqueues the OpenCL kernels for execution. The synchronization step has to be managed by the user.
-	 *  @param[in] plHandle Handle to a plan previously created
-	 *  @param[in] dir Forwards or backwards transform
+	 *  @details This transform API function computes the FFT transform. It is non-blocking as it
+	 *  only enqueues the OpenCL kernels for execution. The synchronization step must be managed by the user.
+	 *  @param[in] plHandle Handle to a previously created plan
+	 *  @param[in] dir Forward or backward transform
 	 *  @param[in] numQueuesAndEvents Number of command queues in commQueues; number of expected events to be returned in outEvents
 	 *  @param[in] commQueues An array of cl_command_queues created by the client; the command queues must be a proper subset of
-	 * 	the devices included in the plan context
+	 * 	the devices included in the OpenCL context associated with the plan
 	 *  @param[in] numWaitEvents Specify the number of elements in the eventWaitList array
-	 *  @param[in] waitEvents Events that this transform should wait to complete before executing on the device
-	 *  @param[out] outEvents The runtime fills this array with events corresponding 1 to 1 with the input command queues passed
-	 *	in commQueues.  This parameter can be NULL or nullptr, in which case client is not interested in receiving notifications
-	 *	when transforms are finished, otherwise if not NULL the client is responsible for allocating this array, with at least
+	 *  @param[in] waitEvents Events for which the transform waits to complete before executing on the device
+	 *  @param[out] outEvents The runtime fills this array with events corresponding one to one with the input command queues passed
+	 *	in commQueues.  This parameter can have the value NULL or nullptr. When the value is NULL, the client is not interested in receiving notifications
+	 *	when transforms are finished, otherwise, (if not NULL) the client is responsible for allocating this array with at least
 	 *	as many elements as specified in numQueuesAndEvents.
-	 *  @param[in] inputBuffers An array of cl_mem objects that contain data for processing by the FFT runtime.  If the transform
-	 *  is in place, the FFT results will overwrite the input buffers
-	 *  @param[out] outputBuffers An array of cl_mem objects that will store the results of out of place transforms.  If the transform
-	 *  is in place, this parameter may be NULL or nullptr.  It is completely ignored
+	 *  @param[in] inputBuffers An array of cl_mem objects that contain data for processing by the FFT runtime. If the transform
+	 *  is in-place, the FFT results overwrite the input buffers
+	 *  @param[out] outputBuffers An array of cl_mem objects that store the results of out-of-place transforms. If the transform
+	 *  is in-place, this parameter may be NULL or nullptr and is completely ignored
 	 *  @param[in] tmpBuffer A cl_mem object that is reserved as a temporary buffer for FFT processing. If clTmpBuffers is NULL or nullptr,
-	 *  and the runtime needs temporary storage, an internal temporary buffer will be created on the fly managed by the runtime.
+	 *  and the library needs temporary storage, an internal temporary buffer is created on the fly managed by the library.
 	 *  @return Enum describing error condition; superset of OpenCL error codes
 	 */
 	CLFFTAPI clfftStatus	clfftEnqueueTransform(

-- 
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