Skip to content

Commit 0320fb8

Browse files
author
Daniel Vickers
committed
Resolved memory allocation issues on AMD compilers
1 parent 18fe6ff commit 0320fb8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/simulation/m_start_up.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,7 @@ contains
12331233
local_ib_patch_ids(i) = i
12341234
end do
12351235

1236+
$:GPU_EXIT_DATA(delete='[patch_ib]')
12361237
deallocate (patch_ib)
12371238

12381239
#ifdef MFC_MPI
@@ -1275,6 +1276,7 @@ contains
12751276
deallocate (patch_ib_gbl)
12761277
#endif
12771278

1279+
$:GPU_ENTER_DATA(create='[patch_ib]')
12781280
@:ALLOCATE(ib_gbl_idx_lookup(1:num_gbl_ibs))
12791281

12801282
end subroutine s_reduce_ib_patch_array

0 commit comments

Comments
 (0)