A device-resident field.
| 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. |
Frees the device allocation when the field is finalised.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(omptgt_field_t) | :: | self |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(field_t) | :: | self | ||||
| integer, | intent(in) | :: | data_loc |
Sets every point of the field, padding included, to the constant c.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(omptgt_field_t) | :: | self | ||||
| real(kind=dp), | intent(in) | :: | c |
Returns the shape the field is currently viewed with, or -1s if
set_shape has not been called yet.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(omptgt_field_t) | :: | self |
Sets the shape the field is viewed with. Unlike the host and CUDA fields there is no array pointer to reshape here, so this only records the extents later used to cast the device pointer into an array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(omptgt_field_t) | :: | self | ||||
| integer, | intent(in) | :: | dims(3) |
Returns the device pointer to the field's storage, for use in the
is_device_ptr clause of an offloaded region.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(omptgt_field_t) | :: | self |