Deallocates a 2D fortan-array, which is GPU host-pinned memory.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=real_4), | DIMENSION(:, :), POINTER | :: | host_mem |
pointer to array |
||
type(acc_stream_type), | intent(in) | :: | stream |
SUBROUTINE acc_hostmem_dealloc_c4_2D(host_mem, stream)
!! Deallocates a 2D fortan-array, which is GPU host-pinned memory.
COMPLEX(kind=real_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, 1)), stream)
#else
MARK_USED(host_mem)
MARK_USED(stream)
DBCSR_ABORT("acc_hostmem_dealloc_c4: ACC not compiled in.")
#endif
END SUBROUTINE acc_hostmem_dealloc_c4_2D