![]() |
(git:e70887f)
|
#include <complex.h>#include <stdbool.h>#include <stddef.h>Go to the source code of this file.
Functions | |
| void | fft_gpu_init (void) |
| Initializes the fft_gpu library. | |
| void | fft_gpu_finalize (void) |
| Releases resources held by the fft_gpu library. | |
| void | ensure_memory_sizes (const size_t requested_buffer_size, const size_t requested_map_size) |
| Checks size of device buffers and re-allocates them if necessary. | |
| void | fft_gpu_allocate_double (const int length, double **buffer) |
| Allocate buffer of type double. | |
| void | fft_gpu_allocate_complex (const int length, double complex **buffer) |
| Allocate buffer of type double complex. | |
| void | fft_gpu_free_double (double *buffer) |
| Allocate buffer of type double. | |
| void | fft_gpu_free_complex (double complex *buffer) |
| Allocate buffer of type double complex. | |
| void | fft_gpu_register_1d_local (const bool dir, const int n, const int m, const bool transpose_in, const bool transpose_out, const int leading_dimension_in, const int leading_dimension_out, const bool inplace) |
| Performs a (double precision complex) 1D-FFT on the GPU. | |
| void | fft_gpu_register_1d_r2c_local (const bool dir, const int n, const int m, const bool transpose_in, const bool transpose_out, const int leading_dimension_in, const int leading_dimension_out, const bool inplace) |
| Performs a (double precision complex) R2C 1D-FFT on the GPU. | |
| void | fft_gpu_register_2d_local (const bool dir, const int n[2], const int m, const bool transpose_in, const bool transpose_out, const bool inplace) |
| Performs a (double precision complex) 1D-FFT on the GPU. | |
| void | fft_gpu_register_2d_r2c_local (const bool dir, const int n[2], const int m, const bool transpose_in, const bool transpose_out, const bool inplace) |
| Performs a (double precision complex) R2C 1D-FFT on the GPU. | |
| void | fft_gpu_register_3d_local (const bool dir, const int *npts, const bool inplace, const int number_of_ffts, const bool transpose_in, const bool transpose_out) |
| Performs a (double precision complex) 3D-FFT on the GPU. | |
| void | fft_gpu_register_3d_r2c_local (const bool dir, const int *npts, const bool inplace, const int number_of_ffts, const bool transpose_in, const bool transpose_out) |
| Performs a 3D-R2C/C2R-FFT, on the GPU. | |
| void | fft_gpu_1d_local (const double *zin, double *zout, const bool dir, const int n, const int m, const bool transpose_in, const bool transpose_out, const int leading_dimension_in, const int leading_dimension_out) |
| Performs a (double precision complex) 1D-FFT on the GPU. | |
| void | fft_gpu_1d_r2c_local (const double *zin, double *zout, const bool dir, const int n, const int m, const bool transpose_in, const bool transpose_out, const int leading_dimension_in, const int leading_dimension_out) |
| Performs a (double precision complex) R2C 1D-FFT on the GPU. | |
| void | fft_gpu_2d_local (const double *zin, double *zout, const bool dir, const int n[2], const int m, const bool transpose_in, const bool transpose_out) |
| Performs a (double precision complex) 1D-FFT on the GPU. | |
| void | fft_gpu_2d_r2c_local (const double *zin, double *zout, const bool dir, const int n[2], const int m, const bool transpose_in, const bool transpose_out) |
| Performs a (double precision complex) R2C 1D-FFT on the GPU. | |
| void | fft_gpu_3d_local (const double *zin, double *zout, const bool dir, const int *npts, const int number_of_ffts, const bool transpose_in, const bool transpose_out) |
| Performs a (double precision complex) 3D-FFT on the GPU. | |
| void | fft_gpu_3d_r2c_local (const double *zin, double *zout, const bool dir, const int *npts, const int number_of_ffts, const bool transpose_in, const bool transpose_out) |
| Performs a 3D-R2C/C2R-FFT, on the GPU. | |
| void fft_gpu_init | ( | void | ) |
| void fft_gpu_finalize | ( | void | ) |
| void ensure_memory_sizes | ( | const size_t | requested_buffer_size, |
| const size_t | requested_map_size ) |
| void fft_gpu_allocate_double | ( | const int | length, |
| double ** | buffer ) |
| void fft_gpu_allocate_complex | ( | const int | length, |
| double complex ** | buffer ) |
| void fft_gpu_free_double | ( | double * | buffer | ) |
| void fft_gpu_free_complex | ( | double complex * | buffer | ) |
| void fft_gpu_register_1d_local | ( | const bool | dir, |
| const int | n, | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const int | leading_dimension_in, | ||
| const int | leading_dimension_out, | ||
| const bool | inplace ) |
Performs a (double precision complex) 1D-FFT on the GPU.
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| leading_dimension_in | Leading dimension of the input array. |
| leading_dimension_out | Leading dimension of the output array. |
| inplace | Whether the transform is performed in-place. |
Definition at line 933 of file fft_gpu.c.
| void fft_gpu_register_1d_r2c_local | ( | const bool | dir, |
| const int | n, | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const int | leading_dimension_in, | ||
| const int | leading_dimension_out, | ||
| const bool | inplace ) |
Performs a (double precision complex) R2C 1D-FFT on the GPU.
Performs a (double precision complex) R2C 1D-FFT on the GPU.
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| leading_dimension_in | Leading dimension of the input array. |
| leading_dimension_out | Leading dimension of the output array. |
| inplace | Whether the transform is performed in-place. |
Definition at line 973 of file fft_gpu.c.
| void fft_gpu_register_2d_local | ( | const bool | dir, |
| const int | n[2], | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const bool | inplace ) |
Performs a (double precision complex) 1D-FFT on the GPU.
Performs a (double precision complex) 1D-FFT on the GPU.
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| inplace | Whether the transform is performed in-place. |
Definition at line 1012 of file fft_gpu.c.
| void fft_gpu_register_2d_r2c_local | ( | const bool | dir, |
| const int | n[2], | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const bool | inplace ) |
Performs a (double precision complex) R2C 1D-FFT on the GPU.
Performs a (double precision complex) R2C 1D-FFT on the GPU.
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| inplace | Whether the transform is performed in-place. |
Definition at line 1045 of file fft_gpu.c.
| void fft_gpu_register_3d_local | ( | const bool | dir, |
| const int * | npts, | ||
| const bool | inplace, | ||
| const int | number_of_ffts, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a (double precision complex) 3D-FFT on the GPU.
| dir | FFT direction (forward or backward). |
| npts | Transform grid dimensions. |
| inplace | Whether the transform is performed in-place. |
| number_of_ffts | Number of independent (batched) transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 864 of file fft_gpu.c.
| void fft_gpu_register_3d_r2c_local | ( | const bool | dir, |
| const int * | npts, | ||
| const bool | inplace, | ||
| const int | number_of_ffts, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a 3D-R2C/C2R-FFT, on the GPU.
| dir | FFT direction (forward or backward). |
| npts | Transform grid dimensions. |
| inplace | Whether the transform is performed in-place. |
| number_of_ffts | Number of independent (batched) transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 897 of file fft_gpu.c.
| void fft_gpu_1d_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int | n, | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const int | leading_dimension_in, | ||
| const int | leading_dimension_out ) |
Performs a (double precision complex) 1D-FFT on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| leading_dimension_in | Leading dimension of the input array. |
| leading_dimension_out | Leading dimension of the output array. |
Definition at line 1457 of file fft_gpu.c.
| void fft_gpu_1d_r2c_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int | n, | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out, | ||
| const int | leading_dimension_in, | ||
| const int | leading_dimension_out ) |
Performs a (double precision complex) R2C 1D-FFT on the GPU.
Performs a (double precision complex) R2C 1D-FFT on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
| leading_dimension_in | Leading dimension of the input array. |
| leading_dimension_out | Leading dimension of the output array. |
Definition at line 1522 of file fft_gpu.c.
| void fft_gpu_2d_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int | n[2], | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a (double precision complex) 1D-FFT on the GPU.
Performs a (double precision complex) 1D-FFT on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 1582 of file fft_gpu.c.
| void fft_gpu_2d_r2c_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int | n[2], | ||
| const int | m, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a (double precision complex) R2C 1D-FFT on the GPU.
Performs a (double precision complex) R2C 1D-FFT on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| n | Transform length. |
| m | Number of transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 1630 of file fft_gpu.c.
| void fft_gpu_3d_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int * | npts, | ||
| const int | number_of_ffts, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a (double precision complex) 3D-FFT on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| npts | Transform grid dimensions. |
| number_of_ffts | Number of independent (batched) transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 1190 of file fft_gpu.c.
| void fft_gpu_3d_r2c_local | ( | const double * | zin, |
| double * | zout, | ||
| const bool | dir, | ||
| const int * | npts, | ||
| const int | number_of_ffts, | ||
| const bool | transpose_in, | ||
| const bool | transpose_out ) |
Performs a 3D-R2C/C2R-FFT, on the GPU.
| zin | Input complex data. |
| zout | Output complex data. |
| dir | FFT direction (forward or backward). |
| npts | Transform grid dimensions. |
| number_of_ffts | Number of independent (batched) transforms. |
| transpose_in | Whether the input array uses the transposed layout. |
| transpose_out | Whether the output array uses the transposed layout. |
Definition at line 1239 of file fft_gpu.c.