Inheritance diagram for q3::gpu::SYCLGPUFFTGrid:Public Member Functions | |
| SYCLGPUFFTGrid (std::shared_ptr< execution::gpu::device::GPUDeviceBackend > device_backend) | |
| ~SYCLGPUFFTGrid () override=default | |
| void | execute_forward_on_buffers () const override |
| void | execute_inverse_raw_on_buffers () const override |
| void | forward (Complex *data) const override |
| void | forward_single (ComplexSingle *data) const override |
| void | forward_transform (Complex *data) const override |
| int | g_vector_to_fft_grid_index (int miller_1, int miller_2, int miller_3) const override |
| int | grid_dimension_1 () const override |
| int | grid_dimension_2 () const override |
| int | grid_dimension_3 () const override |
| void | init (int dimension_1, int dimension_2, int dimension_3, bool use_measured_planning=false) override |
| Complex * | input_buffer () const override |
| void | inverse (Complex *data) const override |
| void | inverse_raw (Complex *data) const override |
| void | inverse_raw_single (ComplexSingle *data) const override |
| void | inverse_transform (Complex *data) const override |
| int | local_grid_points () const override |
| int | local_offset () const override |
| Complex * | output_buffer () const override |
| void | prepare_forward_from_output () const override |
| void | reduce_g_space (Complex *data, int number_of_elements) const override |
| int | total_grid_points () const override |
Public Member Functions inherited from q3::gpu::GPUFFTGrid | |
| GPUFFTGrid (std::shared_ptr< execution::gpu::device::GPUDeviceBackend > device_backend) | |
| ~GPUFFTGrid () override=default | |
| execution::gpu::device::GPUDeviceBackend & | device_backend () |
| const execution::gpu::device::GPUDeviceBackend & | device_backend () const |
| virtual void | forward_single_batch (ComplexSingle *data, int batch_size) const |
| virtual void | forward_transform_batch (Complex *data, int batch_size) const |
| virtual void | inverse_raw_single_batch (ComplexSingle *data, int batch_size) const |
| virtual void | inverse_transform_batch (Complex *data, int batch_size) const |
Public Member Functions inherited from q3::FFTGrid | |
| virtual | ~FFTGrid ()=default |
| virtual void | assign_sticks (const std::vector< int > &) |
| virtual bool | co_locates_mirrors () const |
| virtual int | concurrent_transform_slots () const |
| virtual void | execute_forward_on_slot (int) const |
Forward transform on slot slot, the slot-aware execute_forward_on_buffers(). | |
| virtual void | execute_inverse_raw_on_slot (int) const |
Inverse transform on slot slot, the slot-aware execute_inverse_raw_on_buffers(). | |
| virtual void | forward_batched (Complex *data, int batch_size) const |
| virtual void | gather_local_g_space (const Complex *full_g_space, Complex *local_g_space) const |
| virtual int | global_real_space_index (int local_index) const |
| virtual void | initialize_batched_plans (int, bool=false) const |
| virtual int | initialized_batched_plan_size () const |
| virtual void | inverse_raw_batched (Complex *data, int batch_size) const |
| virtual void | inverse_raw_on_slot (Complex *data, int) const |
| virtual int | local_g_space_points () const |
| virtual bool | owns_stick (int, int) const |
| virtual void | prepare_forward_from_output_on_slot (int) const |
Output-to-input copy on slot slot, the slot-aware prepare_forward_from_output(). | |
| virtual void | scatter_local_g_space (const Complex *local_g_space, Complex *full_g_space) const |
| The reverse: place this rank's reciprocal-space points into a full array. | |
| virtual int | slab_dimension_1 () const |
| virtual Complex * | slot_input_buffer (int) const |
| virtual Complex * | slot_output_buffer (int) const |
Additional Inherited Members | |
Protected Attributes inherited from q3::gpu::GPUFFTGrid | |
| std::shared_ptr< execution::gpu::device::GPUDeviceBackend > | device_backend_ |
|
inlineexplicit |
Construct a SYCL FFT grid backed by the given device.
All FFT operations are delegated to the internal SerialFFTGrid, so no SYCL-specific resources are created here.
|
overridedefault |
|
inlineoverridevirtual |
Execute a forward FFT on the internal buffers (no copy).
Caller must have populated input_buffer() before calling. Result is available in output_buffer() after this call.
Implements q3::FFTGrid.
Definition at line 95 of file sycl.cpp.
References q3::SerialFFTGrid::execute_forward_on_buffers().
|
inlineoverridevirtual |
Execute a raw inverse FFT on the internal buffers (no copy, no normalization).
Caller must have populated input_buffer() before calling. Result is available in output_buffer() after this call.
Implements q3::FFTGrid.
Definition at line 92 of file sycl.cpp.
References q3::SerialFFTGrid::execute_inverse_raw_on_buffers().
|
inlineoverridevirtual |
Forward FFT: real-space -> reciprocal-space (unnormalized).
Implements q3::FFTGrid.
Definition at line 66 of file sycl.cpp.
References q3::SerialFFTGrid::forward().
|
inlineoverridevirtual |
Forward FP32 FFT via upcast to FP64 + SerialFFTGrid + downcast.
This matches the Metal backend fallback path. oneMKL DFT can be added later for native FP32 GPU FFT on Intel hardware.
Implements q3::gpu::GPUFFTGrid.
Definition at line 110 of file sycl.cpp.
References q3::SerialFFTGrid::forward(), and total_grid_points().
|
inlineoverridevirtual |
Forward FP64 FFT delegates to SerialFFTGrid (FFTW).
Reimplemented from q3::gpu::GPUFFTGrid.
Definition at line 156 of file sycl.cpp.
References q3::SerialFFTGrid::forward().
|
inlineoverridevirtual |
Map a G-vector (integer Miller indices) to FFT array index. Handles negative indices via wrapping.
Implements q3::FFTGrid.
Definition at line 77 of file sycl.cpp.
References q3::SerialFFTGrid::g_vector_to_fft_grid_index().
|
inlineoverridevirtual |
Grid size along the first dimension.
Implements q3::FFTGrid.
Definition at line 47 of file sycl.cpp.
References q3::SerialFFTGrid::grid_dimension_1().
|
inlineoverridevirtual |
Grid size along the second dimension.
Implements q3::FFTGrid.
Definition at line 50 of file sycl.cpp.
References q3::SerialFFTGrid::grid_dimension_2().
|
inlineoverridevirtual |
Grid size along the third dimension.
Implements q3::FFTGrid.
Definition at line 53 of file sycl.cpp.
References q3::SerialFFTGrid::grid_dimension_3().
|
inlineoverridevirtual |
Initialize with grid dimensions (dimension_1 x dimension_2 x dimension_3).
Implements q3::FFTGrid.
Definition at line 40 of file sycl.cpp.
References q3::SerialFFTGrid::init().
|
inlineoverridevirtual |
Access the FFT grid's internal input buffer for zero-copy transforms.
Callers scatter G-space data directly into this buffer, then call execute_inverse_raw_on_buffers() to transform in-place. This eliminates the memcpy overhead of inverse_raw() / forward().
The buffer has at least local_grid_points() elements of usable space.
Implements q3::FFTGrid.
Definition at line 85 of file sycl.cpp.
References q3::SerialFFTGrid::input_buffer().
|
inlineoverridevirtual |
Inverse FFT: reciprocal-space -> real-space (includes 1/N normalization).
Implements q3::FFTGrid.
Definition at line 69 of file sycl.cpp.
References q3::SerialFFTGrid::inverse().
|
inlineoverridevirtual |
Inverse FFT without 1/N normalization (raw FFTW backward).
Implements q3::FFTGrid.
Definition at line 72 of file sycl.cpp.
References q3::SerialFFTGrid::inverse_raw().
|
inlineoverridevirtual |
Inverse FP32 FFT (raw, unnormalized) via upcast to FP64 + SerialFFTGrid + downcast.
Implements q3::gpu::GPUFFTGrid.
Definition at line 132 of file sycl.cpp.
References q3::SerialFFTGrid::inverse_raw(), and total_grid_points().
|
inlineoverridevirtual |
Inverse FP64 FFT (raw, unnormalized) delegates to SerialFFTGrid (FFTW).
Reimplemented from q3::gpu::GPUFFTGrid.
Definition at line 163 of file sycl.cpp.
References q3::SerialFFTGrid::inverse_raw().
|
inlineoverridevirtual |
Number of real-space grid points stored on the local rank.
Implements q3::FFTGrid.
Definition at line 59 of file sycl.cpp.
References q3::SerialFFTGrid::local_grid_points().
|
inlineoverridevirtual |
Offset into the global grid for the local segment (e.g., start of slab).
Implements q3::FFTGrid.
Definition at line 62 of file sycl.cpp.
References q3::SerialFFTGrid::local_offset().
|
inlineoverridevirtual |
Access the FFT grid's internal output buffer for zero-copy transforms.
After execute_inverse_raw_on_buffers(), real-space data is here. After execute_forward_on_buffers(), G-space data is here.
For in-place plans (MPI FFT), this returns the same pointer as input_buffer(). For out-of-place plans (Serial FFT), this is a separate buffer.
Implements q3::FFTGrid.
Definition at line 88 of file sycl.cpp.
References q3::SerialFFTGrid::output_buffer().
|
inlineoverridevirtual |
Prepare the input buffer for a forward transform after modifying the output buffer.
For out-of-place plans (Serial FFT), this copies output_buffer → input_buffer. For in-place plans (MPI FFT), this is a no-op (same buffer).
Call this between the real-space multiply and execute_forward_on_buffers().
Implements q3::FFTGrid.
Definition at line 98 of file sycl.cpp.
References q3::SerialFFTGrid::prepare_forward_from_output().
|
inlineoverridevirtual |
Reduce G-space data across the pool to make it redundant on all ranks.
Serial: no-op. MPI: MPI_Allreduce(MPI_IN_PLACE, ..., MPI_SUM, pool_comm).
Implements q3::FFTGrid.
Definition at line 81 of file sycl.cpp.
References q3::SerialFFTGrid::reduce_g_space().
|
inlineoverridevirtual |
Total number of real-space grid points across all processes.
Implements q3::FFTGrid.
Definition at line 56 of file sycl.cpp.
References q3::SerialFFTGrid::total_grid_points().
Referenced by forward_single(), and inverse_raw_single().