| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(dtfft_backend_t), | public | :: | backend |
Backend |
|||
| type(backend_helper), | public | :: | helper |
Backend helper |
|||
| integer(kind=int64), | public | :: | min_buffer_size |
Minimal buffer size for transposition |
|||
| type(dtfft_platform_t), | public | :: | platform |
Platform used for transposition |
|||
| type(dtfft_stream_t), | public | :: | stream |
CUDA stream |
|||
| type(reshape_container), | public, | allocatable | :: | plans(:) |
Plans for each reshape operation |
||
| type(string), | public, | allocatable | :: | names(:) |
Names of each reshape operation |
| procedure, public, pass(self), non_overridable :: init | |
| procedure, public, pass(self), non_overridable :: get_async_active | |
| procedure, public, pass(self), non_overridable :: get_aux_bytes | ../../ Returns auxiliary buffer size |
| procedure, public, pass(self), non_overridable :: is_aux_needed | |
| procedure, public, pass(self), non_overridable :: get_backend | ../../ Returns backend id |
| procedure, public, pass(self) :: destroy | |
| procedure, public, pass(self), non_overridable :: execute | |
| procedure, public, pass(self), non_overridable :: execute_end | |
| procedure, public, pass(self), non_overridable :: mem_alloc | |
| procedure, public, pass(self), non_overridable :: mem_free |
Returns maximum auxiliary memory size needed by plans
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(reshape_container), | intent(in) | :: | plans(:) |
Transpose plans |
Destroys array of plans
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(reshape_container), | intent(inout) | :: | plans(:) |
Allocated plans |
||
| type(MPI_Comm), | intent(in) | :: | comm |
Communicator |
||
| type(dtfft_backend_t), | intent(in) | :: | backend |
Backend to use |
||
| type(dtfft_platform_t), | intent(in) | :: | platform |
Platform used |
||
| type(backend_helper), | intent(inout) | :: | helper |
Helper to use |
||
| type(dtfft_stream_t), | intent(in) | :: | stream |
Stream to use |
||
| integer(kind=int64), | intent(in) | :: | buffer_size | |||
| integer(kind=int32), | intent(in), | optional | :: | report_space_count |
Execution time
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(MPI_Comm), | intent(in) | :: | comm | |||
| real(kind=real32), | intent(in) | :: | elapsed_time | |||
| integer(kind=int32), | intent(in) | :: | n_iters | |||
| integer(kind=int32), | intent(in), | optional | :: | space_count |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self | |||
| type(dtfft_platform_t), | intent(in) | :: | platform | |||
| type(dtfft_effort_t), | intent(in) | :: | effort |
Returns .true. if any of the plans is running asynchronously
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Transposition class |
Returns maximum auxiliary memory size needed by transpose plan
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Transposition class |
Returns true if aux is needed. false otherwise
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Transposition class |
Returns plan backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Transposition class |
Allocates array of plans
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(reshape_container), | intent(inout) | :: | plans(:) |
Plans to allocate |
||
| type(dtfft_backend_t), | intent(in) | :: | backend |
Backend to use |
Destroys array of plans
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(reshape_container), | intent(inout) | :: | plans(:) |
Plans to destroy |
Executes transposition
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Transposition class |
||
| type(c_ptr), | intent(in) | :: | in |
Incoming buffer |
||
| type(c_ptr), | intent(in) | :: | out |
Resulting buffer |
||
| integer(kind=int32), | intent(in) | :: | reshape_type |
Type of reshape to execute |
||
| type(async_exec_t), | intent(in) | :: | exec_type |
Type of execution (sync/async) |
||
| type(c_ptr), | intent(in) | :: | aux |
Optional auxiliary buffer |
||
| integer(kind=int32), | intent(out), | optional | :: | error_code |
Error code |
Finishes asynchronous reshape
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Reshape class |
||
| type(c_ptr), | intent(in) | :: | in |
Incoming buffer |
||
| type(c_ptr), | intent(in) | :: | out |
Resulting buffer |
||
| integer(kind=int32), | intent(in) | :: | reshape_type |
Type of reshape to execute |
||
| type(c_ptr), | intent(in) | :: | aux | |||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Allocates memory based on selected backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Transposition class |
||
| type(MPI_Comm), | intent(in) | :: | comm |
MPI communicator |
||
| integer(kind=int64), | intent(in) | :: | alloc_bytes |
Number of bytes to allocate |
||
| type(c_ptr), | intent(out) | :: | ptr |
Pointer to the allocated memory |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Frees memory allocated with mem_alloc
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Transposition class |
||
| type(c_ptr), | intent(in) | :: | ptr |
Pointer to the memory to free |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Allocates memory based on backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dtfft_platform_t), | intent(in) | :: | platform | |||
| type(backend_helper), | intent(inout) | :: | helper |
Backend helper |
||
| type(dtfft_backend_t), | intent(in) | :: | backend |
GPU backend |
||
| type(MPI_Comm), | intent(in) | :: | comm |
MPI communicator |
||
| integer(kind=int64), | intent(in) | :: | alloc_bytes |
Number of bytes to allocate |
||
| type(c_ptr), | intent(out) | :: | ptr |
Pointer to the allocated memory |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Frees memory based on backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dtfft_platform_t), | intent(in) | :: | platform | |||
| type(backend_helper), | intent(inout) | :: | helper |
Backend helper |
||
| type(dtfft_backend_t), | intent(in) | :: | backend |
GPU backend |
||
| type(c_ptr), | intent(in) | :: | ptr |
Pointer to the memory to free |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Allocates auxiliary memory according to the backend and sets it to the plans
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(dtfft_platform_t), | intent(in) | :: | platform | |||
| type(backend_helper), | intent(inout) | :: | helper |
Backend helper |
||
| type(dtfft_backend_t), | intent(in) | :: | backend |
GPU backend |
||
| type(MPI_Comm), | intent(in) | :: | cart_comm |
Cartesian communicator |
||
| type(c_ptr), | intent(inout) | :: | aux |
Allocatable auxiliary memory |
||
| real(kind=real32), | intent(inout), | pointer | :: | paux(:) |
Pointer to auxiliary memory |
|
| type(reshape_container), | intent(in) | :: | plans(:) | |||
| logical | :: | is_aux_alloc |
Is auxiliary memory allocated |