rocm.bindings.hipfft

Contents

rocm.bindings.hipfft#

2026-09-24

24 min read time

Applies to Linux and Windows

Advanced Micro Devices, Inc.

Attributes#

Classes#

hipfftResult_t

Result/status/error codes

hipfftType_t

Transform type

hipfftLibraryPropertyType_t

(No short description)

hipfftHandle_t

(No short description)

Functions#

has_symbol(→ bool)

hipfftPlan1d(nx, type, batch)

Create a new one-dimensional FFT plan.

hipfftPlan2d(nx, ny, type)

Create a new two-dimensional FFT plan.

hipfftPlan3d(nx, ny, nz, type)

Create a new three-dimensional FFT plan.

hipfftPlanMany(rank, n, inembed, istride, idist, ...)

Create a new batched rank-dimensional FFT plan with advanced data layout.

hipfftCreate()

Allocate a new plan.

hipfftExtPlanScaleFactor(plan, scalefactor)

Set scaling factor.

hipfftMakePlan1d(plan, nx, type, batch)

Initialize a new one-dimensional FFT plan.

hipfftMakePlan2d(plan, nx, ny, type)

Initialize a new two-dimensional FFT plan.

hipfftMakePlan3d(plan, nx, ny, nz, type)

Initialize a new two-dimensional FFT plan.

hipfftMakePlanMany(rank, n, inembed, istride, idist, ...)

Initialize a new batched rank-dimensional FFT plan with advanced data layout.

hipfftMakePlanMany64(plan, rank, n, inembed, istride, ...)

(No short description, might be part of a group.)

hipfftEstimate1d(nx, type, batch)

Return an estimate of the work area size required for a 1D plan.

hipfftEstimate2d(nx, ny, type)

Return an estimate of the work area size required for a 2D plan.

hipfftEstimate3d(nx, ny, nz, type)

Return an estimate of the work area size required for a 3D plan.

hipfftEstimateMany(rank, n, inembed, istride, idist, ...)

Return an estimate of the work area size required for a rank-dimensional plan.

hipfftGetSize1d(plan, nx, type, batch)

Return size of the work area size required for a 1D plan.

hipfftGetSize2d(plan, nx, ny, type)

Return size of the work area size required for a 2D plan.

hipfftGetSize3d(plan, nx, ny, nz, type)

Return size of the work area size required for a 3D plan.

hipfftGetSizeMany(plan, rank, n, inembed, istride, ...)

Return size of the work area size required for a rank-dimensional plan.

hipfftGetSizeMany64(plan, rank, n, inembed, istride, ...)

(No short description, might be part of a group.)

hipfftGetSize(plan)

Return size of the work area size required for a rank-dimensional plan.

hipfftSetAutoAllocation(plan, autoAllocate)

Set the plan's auto-allocation flag. The plan will allocate its own workarea.

hipfftSetWorkArea(plan, workArea)

Set the plan's work area.

hipfftExecC2C(plan, idata, odata, direction)

Execute a (float) complex-to-complex FFT.

hipfftExecR2C(plan, idata, odata)

Execute a (float) real-to-complex FFT.

hipfftExecC2R(plan, idata, odata)

Execute a (float) complex-to-real FFT.

hipfftExecZ2Z(plan, idata, odata, direction)

Execute a (double) complex-to-complex FFT.

hipfftExecD2Z(plan, idata, odata)

Execute a (double) real-to-complex FFT.

hipfftExecZ2D(plan, idata, odata)

Execute a (double) complex-to-real FFT.

hipfftSetStream(plan, stream)

Set HIP stream to execute plan on.

hipfftDestroy(plan)

Destroy and deallocate an existing plan.

hipfftGetVersion()

Get rocFFT/cuFFT version.

hipfftGetProperty(type)

Get library property.

Module Contents#

rocm.bindings.hipfft.has_symbol(name: str | bytes | bytearray) → bool#
rocm.bindings.hipfft.HIPFFT_FORWARD: Any#
rocm.bindings.hipfft.HIPFFT_BACKWARD: Any#
class rocm.bindings.hipfft.hipfftResult_t#

Bases: enum.IntEnum

Result/status/error codes

HIPFFT_SUCCESS: int#
HIPFFT_INVALID_PLAN: int#
HIPFFT_ALLOC_FAILED: int#
HIPFFT_INVALID_TYPE: int#
HIPFFT_INVALID_VALUE: int#
HIPFFT_INTERNAL_ERROR: int#
HIPFFT_EXEC_FAILED: int#
HIPFFT_SETUP_FAILED: int#
HIPFFT_INVALID_SIZE: int#
HIPFFT_UNALIGNED_DATA: int#
HIPFFT_INCOMPLETE_PARAMETER_LIST: int#
HIPFFT_INVALID_DEVICE: int#
HIPFFT_PARSE_ERROR: int#
HIPFFT_NO_WORKSPACE: int#
HIPFFT_NOT_IMPLEMENTED: int#
HIPFFT_NOT_SUPPORTED: int#
rocm.bindings.hipfft.hipfftResult#
class rocm.bindings.hipfft.hipfftType_t#

Bases: enum.IntEnum

Transform type

This type is used to declare the Fourier transform type that will be executed.

HIPFFT_R2C: int#
HIPFFT_C2R: int#
HIPFFT_C2C: int#
HIPFFT_D2Z: int#
HIPFFT_Z2D: int#
HIPFFT_Z2Z: int#
rocm.bindings.hipfft.hipfftType#
class rocm.bindings.hipfft.hipfftLibraryPropertyType_t#

Bases: enum.IntEnum

(No short description)

HIPFFT_MAJOR_VERSION: int#
HIPFFT_MINOR_VERSION: int#
HIPFFT_PATCH_LEVEL: int#
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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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 tuple of size 2 that contains (in that order):

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)

Returns:

A tuple of size 1 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 3 that contains (in that order):

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)

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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)

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 2 that contains (in that order):

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.

Returns:

A tuple of size 1 that contains (in that order):

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

Returns:

A tuple of size 1 that contains (in that order):

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_FORWARD or HIPFFT_BACKWARD.

Returns:

A tuple of size 1 that contains (in that order):

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:
plan (hipfftHandle_t/object) – IN:

The FFT plan.

idata (Pointer/object) – IN:

Input data (on device).

odata (Pointer/object) – OUT:

Output data (on device).

Returns:

A tuple of size 1 that contains (in that order):

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:
plan (hipfftHandle_t/object) – IN:

The FFT plan.

idata (Pointer/object) – IN:

Input data (on device).

odata (Pointer/object) – OUT:

Output data (on device).

Returns:

A tuple of size 1 that contains (in that order):

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_FORWARD or HIPFFT_BACKWARD.

Returns:

A tuple of size 1 that contains (in that order):

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:
plan (hipfftHandle_t/object) – IN:

The FFT plan.

idata (Pointer/object) – IN:

Input data (on device).

odata (Pointer/object) – OUT:

Output data (on device).

Returns:

A tuple of size 1 that contains (in that order):

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:
plan (hipfftHandle_t/object) – IN:

The FFT plan.

idata (Pointer/object) – IN:

Input data (on device).

odata (Pointer/object) – OUT:

Output data (on device).

Returns:

A tuple of size 1 that contains (in that order):

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.

Returns:

A tuple of size 1 that contains (in that order):

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.

Returns:

A tuple of size 1 that contains (in that order):

C signature

hipfftResult hipfftDestroy(hipfftHandle plan)
rocm.bindings.hipfft.hipfftGetVersion()#

Get rocFFT/cuFFT version.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipfftResult hipfftGetVersion(int * version)
rocm.bindings.hipfft.hipfftGetProperty(type)#

Get library property.

Args:
type (hipfftLibraryPropertyType_t) – IN:

Property type.

Returns:

A tuple of size 2 that contains (in that order):

C signature

hipfftResult hipfftGetProperty(hipfftLibraryPropertyType type, int * value)