acc_devmem_size_in_bytes Function

public function acc_devmem_size_in_bytes(this) result(res)

Returns size of given devmem in terms of item count (not bytes!)

Arguments

Type IntentOptional Attributes Name
type(acc_devmem_type), intent(in) :: this

Return Value integer

size of device memory (item count)


Source Code

   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