acc_hostmem_dealloc_i4 Subroutine

private subroutine acc_hostmem_dealloc_i4(host_mem, stream)

Deallocates a 1D fortan-array, which is GPU host-pinned memory.

Arguments

TypeIntentOptionalAttributesName
integer(kind=int_4), DIMENSION(:), POINTER:: host_mem

pointer to array

type(acc_stream_type), intent(in) :: stream

Contents


Source Code

      SUBROUTINE acc_hostmem_dealloc_i4 (host_mem, stream)
      !! Deallocates a 1D fortan-array, which is GPU host-pinned memory.

         INTEGER(kind=int_4), DIMENSION(:), POINTER          :: host_mem
         !! pointer to array
         TYPE(acc_stream_type), INTENT(IN)        :: stream

         IF (SIZE(host_mem) == 0) RETURN
#if defined (__DBCSR_ACC)
         CALL acc_hostmem_dealloc_raw(C_LOC(host_mem(1)), stream)
#else
         MARK_USED(host_mem)
         MARK_USED(stream)
         DBCSR_ABORT("acc_hostmem_dealloc_i4: ACC not compiled in.")
#endif
      END SUBROUTINE acc_hostmem_dealloc_i4