Base class for reshape/transpose plans
| 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 |
||
| integer(kind=int32), | public, | allocatable | :: | colors(:) |
Initializes reshape plan base
Initializes reshape plan base
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Reshape class |
||
| type(dtfft_platform_t), | intent(in) | :: | platform |
Execution platform |
||
| type(dtfft_effort_t), | intent(in) | :: | effort |
Effort level |
||
| type(dtfft_backend_t), | intent(in) | :: | backend | |||
| type(dtfft_effort_t), | intent(in) | :: | autotune_effort | |||
| type(dtfft_compression_config_t), | intent(in) | :: | compression_config |
Compression configuration |
||
| type(MPI_Datatype), | intent(in) | :: | base_dtype |
Base datatype |
||
| integer(kind=int64), | intent(in) | :: | base_storage |
Number of bytes to store single element of base datatype |
Error code
Returns .true. if any of the plans is running asynchronously
Returns .true. if any of the plans is running asynchronously
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
Returns auxiliary buffer size
Returns maximum auxiliary memory size needed by reshape plan
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
Returns .true. if aux buffer is needed
Returns true if aux is needed. false otherwise
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
Returns backend id
Returns plan backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
Reports backends used by each plan. Should be used only for adaptive backend
Reports backends used by each plan. Should be used only for adaptive backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |
Executes reshape
Executes reshape plan
| 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
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 |
Optional auxiliary buffer |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Allocates memory
Allocates memory based on selected backend
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Reshape 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
Frees memory allocated with mem_alloc
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Reshape class |
||
| type(c_ptr), | intent(in) | :: | ptr |
Pointer to the memory to free |
||
| integer(kind=int32), | intent(out) | :: | error_code |
Error code |
Destroys reshape plan
Destroys reshape plan
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(inout) | :: | self |
Reshape class |
Reports compression statistics
Reports compression statistics
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(reshape_plan_base), | intent(in) | :: | self |
Reshape class |