Returns size of given devmem in terms of item count (not bytes!)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(acc_devmem_type), | intent(in) | :: | this |
size of device memory (item count)
FUNCTION acc_devmem_size_in_bytes(this) RESULT(res)
!! Returns size of given devmem in terms of item count (not bytes!)
TYPE(acc_devmem_type), INTENT(IN) :: this
INTEGER :: res
!! size of device memory (item count)
IF (this%size_in_bytes < 0) &
DBCSR_ABORT("acc_devmem_len: not allocated")
res = this%size_in_bytes
END FUNCTION acc_devmem_size_in_bytes