acc_hostmem_dealloc_r4 Subroutine

private subroutine acc_hostmem_dealloc_r4(host_mem, stream)

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

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), DIMENSION(:), POINTER :: host_mem

pointer to array

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

Source Code

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

         REAL(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)), stream)
#else
         MARK_USED(host_mem)
         MARK_USED(stream)
         DBCSR_ABORT("acc_hostmem_dealloc_r4: ACC not compiled in.")
#endif
      END SUBROUTINE acc_hostmem_dealloc_r4