Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mesh_t), | intent(inout) | :: | mesh | |||
integer, | intent(in) | :: | sz |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ngrid | |||
type(cuda_field_t), | intent(in), | pointer | :: | next | ||
integer, | intent(in) | :: | id |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | ngrid | ||||
integer, | public | :: | next_id | = | 0 |
The id for the next allocated block. This counter is incremented each time a new block is allocated. |
|
class(mesh_t), | public, | pointer | :: | mesh |
The pointer to the first block on the list. Non associated if the list is empty |
||
class(field_t), | public, | pointer | :: | first | => | null() |
public function cuda_allocator_init (mesh, sz) |
procedure, public :: get_block | |
procedure, public :: release_block | |
procedure, public :: get_block_ids | |
procedure, public :: destroy | |
procedure, public :: compute_padded_dims | |
procedure, public :: create_block => create_cuda_block |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
class(field_t), | public, | pointer | :: | next | |||
real(kind=dp), | public, | pointer, contiguous | :: | data(:,:,:) | |||
integer, | public | :: | dir | ||||
integer, | public | :: | data_loc | ||||
integer, | public | :: | refcount | = | 0 | ||
integer, | public | :: | id |
An integer identifying the memory block. |
|||
real(kind=dp), | public, | device, pointer, contiguous | :: | data_d(:,:,:) |
public function cuda_field_init (ngrid, next, id) |
procedure, public :: set_data_loc | |
procedure, public :: fill => fill_cuda | |
procedure, public :: get_shape => get_shape_cuda | |
procedure, public :: set_shape => set_shape_cuda |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ngrid | |||
type(cuda_field_t), | intent(in), | pointer | :: | next | ||
integer, | intent(in) | :: | id |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(mesh_t), | intent(inout) | :: | mesh | |||
integer, | intent(in) | :: | sz |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cuda_allocator_t), | intent(inout) | :: | self | |||
type(cuda_field_t), | intent(in), | pointer | :: | next |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cuda_field_t) | :: | self | ||||
real(kind=dp), | intent(in) | :: | c |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(cuda_field_t) | :: | self | ||||
integer, | intent(in) | :: | dims(3) |