rocm.bindings.hipfft#
2026-09-24
24 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
Result/status/error codes |
|
Transform type |
|
(No short description) |
|
(No short description) |
Functions#
|
|
|
Create a new one-dimensional FFT plan. |
|
Create a new two-dimensional FFT plan. |
|
Create a new three-dimensional FFT plan. |
|
Create a new batched rank-dimensional FFT plan with advanced data layout. |
Allocate a new plan. |
|
|
Set scaling factor. |
|
Initialize a new one-dimensional FFT plan. |
|
Initialize a new two-dimensional FFT plan. |
|
Initialize a new two-dimensional FFT plan. |
|
Initialize a new batched rank-dimensional FFT plan with advanced data layout. |
|
(No short description, might be part of a group.) |
|
Return an estimate of the work area size required for a 1D plan. |
|
Return an estimate of the work area size required for a 2D plan. |
|
Return an estimate of the work area size required for a 3D plan. |
|
Return an estimate of the work area size required for a rank-dimensional plan. |
|
Return size of the work area size required for a 1D plan. |
|
Return size of the work area size required for a 2D plan. |
|
Return size of the work area size required for a 3D plan. |
|
Return size of the work area size required for a rank-dimensional plan. |
|
(No short description, might be part of a group.) |
|
Return size of the work area size required for a rank-dimensional plan. |
|
Set the plan's auto-allocation flag. The plan will allocate its own workarea. |
|
Set the plan's work area. |
|
Execute a (float) complex-to-complex FFT. |
|
Execute a (float) real-to-complex FFT. |
|
Execute a (float) complex-to-real FFT. |
|
Execute a (double) complex-to-complex FFT. |
|
Execute a (double) real-to-complex FFT. |
|
Execute a (double) complex-to-real FFT. |
|
Set HIP stream to execute plan on. |
|
Destroy and deallocate an existing plan. |
Get rocFFT/cuFFT version. |
|
|
Get library property. |
Module Contents#
- rocm.bindings.hipfft.HIPFFT_FORWARD: Any#
- rocm.bindings.hipfft.HIPFFT_BACKWARD: Any#
- class rocm.bindings.hipfft.hipfftResult_t#
Bases:
enum.IntEnumResult/status/error codes
- rocm.bindings.hipfft.hipfftResult#
- class rocm.bindings.hipfft.hipfftType_t#
Bases:
enum.IntEnumTransform type
This type is used to declare the Fourier transform type that will be executed.
- rocm.bindings.hipfft.hipfftType#
- class rocm.bindings.hipfft.hipfftLibraryPropertyType_t#
Bases:
enum.IntEnum(No short description)
- rocm.bindings.hipfft.hipfftLibraryPropertyType#
- class rocm.bindings.hipfft.hipfftHandle_t(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.hipfft.hipfftHandle#
- rocm.bindings.hipfft.hipfftComplex#
- rocm.bindings.hipfft.hipfftDoubleComplex#
- rocm.bindings.hipfft.hipfftPlan1d(nx, type, batch)#
Create a new one-dimensional FFT plan.
Allocate and initialize a new one-dimensional FFT plan.
- Args:
- nx (
int) – IN: FFT length.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to compute.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle.
C signature
hipfftResult hipfftPlan1d(hipfftHandle * plan, int nx, hipfftType type, int batch)
- rocm.bindings.hipfft.hipfftPlan2d(nx, ny, type)#
Create a new two-dimensional FFT plan.
Allocate and initialize a new two-dimensional FFT plan. Two-dimensional data should be stored in C ordering (row-major format), so that indexes in y-direction (j index) vary the fastest.
- Args:
- nx (
int) – IN: Number of elements in the x-direction (slow index).
- ny (
int) – IN: Number of elements in the y-direction (fast index).
- type (
hipfftType_t) – IN: FFT type.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle.
C signature
hipfftResult hipfftPlan2d(hipfftHandle * plan, int nx, int ny, hipfftType type)
- rocm.bindings.hipfft.hipfftPlan3d(nx, ny, nz, type)#
Create a new three-dimensional FFT plan.
Allocate and initialize a new three-dimensional FFT plan. Three-dimensional data should be stored in C ordering (row-major format), so that indexes in z-direction (k index) vary the fastest.
- Args:
- nx (
int) – IN: Number of elements in the x-direction (slowest index).
- ny (
int) – IN: Number of elements in the y-direction.
- nz (
int) – IN: Number of elements in the z-direction (fastest index).
- type (
hipfftType_t) – IN: FFT type.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle.
C signature
hipfftResult hipfftPlan3d(hipfftHandle * plan, int nx, int ny, int nz, hipfftType type)
- rocm.bindings.hipfft.hipfftPlanMany(rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
Create a new batched rank-dimensional FFT plan with advanced data layout.
Allocate and initialize a new batched rank-dimensional FFT plan. The number of elements to transform in each direction of the input data is specified in n.
The batch parameter tells hipFFT how many transforms to perform. The distance between the first elements of two consecutive batches of the input and output data are specified with the idist and odist parameters.
The inembed and onembed parameters define the input and output data layouts. The number of elements in the data is assumed to be larger than the number of elements in the transform. Strided data layouts are also supported. Strides along the fastest direction in the input and output data are specified via the istride and ostride parameters.
If both inembed and onembed parameters are set to NULL, all the advanced data layout parameters are ignored and reverted to default values, i.e., the batched transform is performed with non-strided data access and the number of data/transform elements are assumed to be equivalent.
- Args:
- rank (
int) – IN: Dimension of transform (1, 2, or 3).
- n (
PointerToInt/object) – IN: Number of elements to transform in the x/y/z directions.
- inembed (
PointerToInt/object) – IN: Number of elements in the input data in the x/y/z directions.
- istride (
int) – IN: Distance between two successive elements in the input data.
- idist (
int) – IN: Distance between input batches.
- onembed (
PointerToInt/object) – IN: Number of elements in the output data in the x/y/z directions.
- ostride (
int) – IN: Distance between two successive elements in the output data.
- odist (
int) – IN: Distance between output batches.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- rank (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle.
C signature
hipfftResult hipfftPlanMany(hipfftHandle * plan, int rank, int * n, int * inembed, int istride, int idist, int * onembed, int ostride, int odist, hipfftType type, int batch)
- rocm.bindings.hipfft.hipfftCreate()#
Allocate a new plan.
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle to be allocated.
C signature
hipfftResult hipfftCreate(hipfftHandle * plan)
- rocm.bindings.hipfft.hipfftExtPlanScaleFactor(plan, scalefactor)#
Set scaling factor.
hipFFT multiplies each element of the result by the given factor at the end of the transform.
The supplied factor must be a finite number. That is, it must neither be infinity nor NaN.
This function must be called after the plan is allocated using ::hipfftCreate, but before the plan is initialized by any of the “MakePlan” functions. Therefore, API functions that combine creation and initialization (::hipfftPlan1d, ::hipfftPlan2d, ::hipfftPlan3d, and ::hipfftPlanMany) cannot set a scale factor.
Note that the scale factor applies to both forward and backward transforms executed with the specified plan handle.
- Args:
- plan (
hipfftHandle_t/object): (undocumented)
- scalefactor (
float/int): (undocumented)
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExtPlanScaleFactor(hipfftHandle plan, double scalefactor)
- rocm.bindings.hipfft.hipfftMakePlan1d(plan, nx, type, batch)#
Initialize a new one-dimensional FFT plan.
Assumes that the plan has been created already, and modifies the plan associated with the plan handle.
- Args:
- plan (
hipfftHandle_t/object) – IN: Handle of the FFT plan.
- nx (
int) – IN: FFT length.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to compute.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftMakePlan1d(hipfftHandle plan, int nx, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftMakePlan2d(plan, nx, ny, type)#
Initialize a new two-dimensional FFT plan.
Assumes that the plan has been created already, and modifies the plan associated with the plan handle. Two-dimensional data should be stored in C ordering (row-major format), so that indexes in y-direction (j index) vary the fastest.
- Args:
- plan (
hipfftHandle_t/object) – IN: Handle of the FFT plan.
- nx (
int) – IN: Number of elements in the x-direction (slow index).
- ny (
int) – IN: Number of elements in the y-direction (fast index).
- type (
hipfftType_t) – IN: FFT type.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftMakePlan2d(hipfftHandle plan, int nx, int ny, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftMakePlan3d(plan, nx, ny, nz, type)#
Initialize a new two-dimensional FFT plan.
Assumes that the plan has been created already, and modifies the plan associated with the plan handle. Three-dimensional data should be stored in C ordering (row-major format), so that indexes in z-direction (k index) vary the fastest.
- Args:
- plan (
hipfftHandle_t/object) – IN: Handle of the FFT plan.
- nx (
int) – IN: Number of elements in the x-direction (slowest index).
- ny (
int) – IN: Number of elements in the y-direction.
- nz (
int) – IN: Number of elements in the z-direction (fastest index).
- type (
hipfftType_t) – IN: FFT type.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftMakePlan3d(hipfftHandle plan, int nx, int ny, int nz, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftMakePlanMany(rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
Initialize a new batched rank-dimensional FFT plan with advanced data layout.
Assumes that the plan has been created already, and modifies the plan associated with the plan handle. The number of elements to transform in each direction of the input data in the FFT plan is specified in n.
The batch parameter tells hipFFT how many transforms to perform. The distance between the first elements of two consecutive batches of the input and output data are specified with the idist and odist parameters.
The inembed and onembed parameters define the input and output data layouts. The number of elements in the data is assumed to be larger than the number of elements in the transform. Strided data layouts are also supported. Strides along the fastest direction in the input and output data are specified via the istride and ostride parameters.
If both inembed and onembed parameters are set to NULL, all the advanced data layout parameters are ignored and reverted to default values, i.e., the batched transform is performed with non-strided data access and the number of data/transform elements are assumed to be equivalent.
- Args:
- rank (
int) – IN: Dimension of transform (1, 2, or 3).
- n (
PointerToInt/object) – IN: Number of elements to transform in the x/y/z directions.
- inembed (
PointerToInt/object) – IN: Number of elements in the input data in the x/y/z directions.
- istride (
int) – IN: Distance between two successive elements in the input data.
- idist (
int) – IN: Distance between input batches.
- onembed (
PointerToInt/object) – IN: Number of elements in the output data in the x/y/z directions.
- ostride (
int) – IN: Distance between two successive elements in the output data.
- odist (
int) – IN: Distance between output batches.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- rank (
- Returns:
A
tupleof size 3 that contains (in that order):hipfftResult_t: (undocumented)hipfftHandle_t:Pointer to the FFT plan handle.
int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftMakePlanMany(hipfftHandle plan, int rank, int * n, int * inembed, int istride, int idist, int * onembed, int ostride, int odist, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftMakePlanMany64(plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
(No short description, might be part of a group.)
- Args:
- plan (
hipfftHandle_t/object): (undocumented)
- rank (
int): (undocumented)
- n (
Pointer/object): (undocumented)
- inembed (
Pointer/object): (undocumented)
- istride (
int): (undocumented)
- idist (
int): (undocumented)
- onembed (
Pointer/object): (undocumented)
- ostride (
int): (undocumented)
- odist (
int): (undocumented)
- type (
hipfftType_t): (undocumented)
- batch (
int): (undocumented)
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)- workSize (
int): (undocumented)
- workSize (
C signature
hipfftResult hipfftMakePlanMany64(hipfftHandle plan, int rank, long long * n, long long * inembed, long long istride, long long idist, long long * onembed, long long ostride, long long odist, hipfftType type, long long batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftEstimate1d(nx, type, batch)#
Return an estimate of the work area size required for a 1D plan.
- Args:
- nx (
int) – IN: Number of elements in the x-direction.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftEstimate1d(int nx, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftEstimate2d(nx, ny, type)#
Return an estimate of the work area size required for a 2D plan.
- Args:
- nx (
int) – IN: Number of elements in the x-direction.
- ny (
int) – IN: Number of elements in the y-direction.
- type (
hipfftType_t) – IN: FFT type.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftEstimate2d(int nx, int ny, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftEstimate3d(nx, ny, nz, type)#
Return an estimate of the work area size required for a 3D plan.
- Args:
- nx (
int) – IN: Number of elements in the x-direction.
- ny (
int) – IN: Number of elements in the y-direction.
- nz (
int) – IN: Number of elements in the z-direction.
- type (
hipfftType_t) – IN: FFT type.
- nx (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftEstimate3d(int nx, int ny, int nz, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftEstimateMany(rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
Return an estimate of the work area size required for a rank-dimensional plan.
- Args:
- rank (
int) – IN: Dimension of FFT transform (1, 2, or 3).
- n (
PointerToInt/object) – IN: Number of elements in the x/y/z directions.
inembed (
PointerToInt/object) – IN:istride (
int) – IN:- idist (
int) – IN: Distance between input batches.
onembed (
PointerToInt/object) – IN:ostride (
int) – IN:- odist (
int) – IN: Distance between output batches.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- rank (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftEstimateMany(int rank, int * n, int * inembed, int istride, int idist, int * onembed, int ostride, int odist, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSize1d(plan, nx, type, batch)#
Return size of the work area size required for a 1D plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- nx (
int) – IN: Number of elements in the x-direction.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftGetSize1d(hipfftHandle plan, int nx, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSize2d(plan, nx, ny, type)#
Return size of the work area size required for a 2D plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- nx (
int) – IN: Number of elements in the x-direction.
- ny (
int) – IN: Number of elements in the y-direction.
- type (
hipfftType_t) – IN: FFT type.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftGetSize2d(hipfftHandle plan, int nx, int ny, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSize3d(plan, nx, ny, nz, type)#
Return size of the work area size required for a 3D plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- nx (
int) – IN: Number of elements in the x-direction.
- ny (
int) – IN: Number of elements in the y-direction.
- nz (
int) – IN: Number of elements in the z-direction.
- type (
hipfftType_t) – IN: FFT type.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftGetSize3d(hipfftHandle plan, int nx, int ny, int nz, hipfftType type, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSizeMany(plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
Return size of the work area size required for a rank-dimensional plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- rank (
int) – IN: Dimension of FFT transform (1, 2, or 3).
- n (
PointerToInt/object) – IN: Number of elements in the x/y/z directions.
inembed (
PointerToInt/object) – IN:istride (
int) – IN:- idist (
int) – IN: Distance between input batches.
onembed (
PointerToInt/object) – IN:ostride (
int) – IN:- odist (
int) – IN: Distance between output batches.
- type (
hipfftType_t) – IN: FFT type.
- batch (
int) – IN: Number of batched transforms to perform.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftGetSizeMany(hipfftHandle plan, int rank, int * n, int * inembed, int istride, int idist, int * onembed, int ostride, int odist, hipfftType type, int batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSizeMany64(plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch)#
(No short description, might be part of a group.)
- Args:
- plan (
hipfftHandle_t/object): (undocumented)
- rank (
int): (undocumented)
- n (
Pointer/object): (undocumented)
- inembed (
Pointer/object): (undocumented)
- istride (
int): (undocumented)
- idist (
int): (undocumented)
- onembed (
Pointer/object): (undocumented)
- ostride (
int): (undocumented)
- odist (
int): (undocumented)
- type (
hipfftType_t): (undocumented)
- batch (
int): (undocumented)
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)- workSize (
int): (undocumented)
- workSize (
C signature
hipfftResult hipfftGetSizeMany64(hipfftHandle plan, int rank, long long * n, long long * inembed, long long istride, long long idist, long long * onembed, long long ostride, long long odist, hipfftType type, long long batch, size_t * workSize)
- rocm.bindings.hipfft.hipfftGetSize(plan)#
Return size of the work area size required for a rank-dimensional plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- plan (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Pointer to work area size (returned value).
C signature
hipfftResult hipfftGetSize(hipfftHandle plan, size_t * workSize)
- rocm.bindings.hipfft.hipfftSetAutoAllocation(plan, autoAllocate)#
Set the plan’s auto-allocation flag. The plan will allocate its own workarea.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- autoAllocate (
int) – IN: 0 to disable auto-allocation, non-zero to enable.
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftSetAutoAllocation(hipfftHandle plan, int autoAllocate)
- rocm.bindings.hipfft.hipfftSetWorkArea(plan, workArea)#
Set the plan’s work area.
- Args:
- plan (
hipfftHandle_t/object) – IN: Pointer to the FFT plan.
- workArea (
Pointer/object) – IN: Pointer to the work area (on device).
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftSetWorkArea(hipfftHandle plan, void * workArea)
- rocm.bindings.hipfft.hipfftExecC2C(plan, idata, odata, direction)#
Execute a (float) complex-to-complex FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- plan (
hipfftHandle_t/object) – IN: The FFT plan.
- idata (
Pointer/object) – IN: Input data (on device).
- odata (
Pointer/object) – OUT: Output data (on device).
- direction (
int) – IN: Either
HIPFFT_FORWARDorHIPFFT_BACKWARD.
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecC2C(hipfftHandle plan, hipfftComplex * idata, hipfftComplex * odata, int direction)
- rocm.bindings.hipfft.hipfftExecR2C(plan, idata, odata)#
Execute a (float) real-to-complex FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecR2C(hipfftHandle plan, hipfftReal * idata, hipfftComplex * odata)
- rocm.bindings.hipfft.hipfftExecC2R(plan, idata, odata)#
Execute a (float) complex-to-real FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecC2R(hipfftHandle plan, hipfftComplex * idata, hipfftReal * odata)
- rocm.bindings.hipfft.hipfftExecZ2Z(plan, idata, odata, direction)#
Execute a (double) complex-to-complex FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- plan (
hipfftHandle_t/object) – IN: The FFT plan.
- idata (
Pointer/object) – IN: Input data (on device).
- odata (
Pointer/object) – OUT: Output data (on device).
- direction (
int) – IN: Either
HIPFFT_FORWARDorHIPFFT_BACKWARD.
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecZ2Z(hipfftHandle plan, hipfftDoubleComplex * idata, hipfftDoubleComplex * odata, int direction)
- rocm.bindings.hipfft.hipfftExecD2Z(plan, idata, odata)#
Execute a (double) real-to-complex FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecD2Z(hipfftHandle plan, hipfftDoubleReal * idata, hipfftDoubleComplex * odata)
- rocm.bindings.hipfft.hipfftExecZ2D(plan, idata, odata)#
Execute a (double) complex-to-real FFT.
If the input and output buffers are equal, an in-place transform is performed.
- Args:
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftExecZ2D(hipfftHandle plan, hipfftDoubleComplex * idata, hipfftDoubleReal * odata)
- rocm.bindings.hipfft.hipfftSetStream(plan, stream)#
Set HIP stream to execute plan on.
Associates a HIP stream with a hipFFT plan. All kernels launched by this plan are associated with the provided stream.
- Args:
- plan (
hipfftHandle_t/object) – IN: The FFT plan.
- stream (
Pointer/object) – IN: The HIP stream.
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftSetStream(hipfftHandle plan, hipStream_t stream)
- rocm.bindings.hipfft.hipfftDestroy(plan)#
Destroy and deallocate an existing plan.
- Args:
- plan (
hipfftHandle_t/object) – IN: Handle of the FFT plan to be destroyed.
- plan (
- Returns:
A
tupleof size 1 that contains (in that order):hipfftResult_t: (undocumented)
C signature
hipfftResult hipfftDestroy(hipfftHandle plan)
- rocm.bindings.hipfft.hipfftGetVersion()#
Get rocFFT/cuFFT version.
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:cuFFT/rocFFT version (returned value).
C signature
hipfftResult hipfftGetVersion(int * version)
- rocm.bindings.hipfft.hipfftGetProperty(type)#
Get library property.
- Args:
- type (
hipfftLibraryPropertyType_t) – IN: Property type.
- type (
- Returns:
A
tupleof size 2 that contains (in that order):hipfftResult_t: (undocumented)int:Returned value.
C signature
hipfftResult hipfftGetProperty(hipfftLibraryPropertyType type, int * value)