acc_devmem_allocated Function

public function acc_devmem_allocated(this) result(res)

Returns a logical, which indicates if the given devmem is allocated.

Arguments

TypeIntentOptionalAttributesName
type(acc_devmem_type), intent(in) :: this

Return Value logical

true if device memory is allocated, false otherwise


Contents

Source Code


Source Code

   FUNCTION acc_devmem_allocated(this) RESULT(res)
      !! Returns a logical, which indicates if the given devmem is allocated.

      TYPE(acc_devmem_type), INTENT(IN)                  :: this
      LOGICAL                                            :: res
         !! true if device memory is allocated, false otherwise

      res = this%size_in_bytes >= 0
   END FUNCTION acc_devmem_allocated