Free the device buffers, then the host map. Collective.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SetInterface3D), | intent(inout) | :: | this |
subroutine Free_SetInterface3D(this)
!! Free the device buffers, then the host map. Collective.
implicit none
class(SetInterface3D),intent(inout) :: this
if(c_associated(this%faceElem_gpu)) call gpuCheck(hipFree(this%faceElem_gpu))
if(c_associated(this%faceSide_gpu)) call gpuCheck(hipFree(this%faceSide_gpu))
if(c_associated(this%outbox_gpu)) call gpuCheck(hipFree(this%outbox_gpu))
if(c_associated(this%ghost_gpu)) call gpuCheck(hipFree(this%ghost_gpu))
this%faceElem_gpu = c_null_ptr
this%faceSide_gpu = c_null_ptr
this%outbox_gpu = c_null_ptr
this%ghost_gpu = c_null_ptr
call Free_SetInterface3D_t(this)
endsubroutine Free_SetInterface3D