Skip to content

Commit

Permalink
test_gang updated to account for allowed ISTATUS divergence between G…
Browse files Browse the repository at this point in the history
…ANG and CHILDREN
  • Loading branch information
awnawab committed Dec 12, 2023
1 parent 261c944 commit 99d6724
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ list(APPEND TEST_FILES
test_crc64.F90
test_field_gang_sparse_copy.F90
wrapper_modify_gpu.F90
test_gang.F90
test_gang.F90
)

#Place-holder for failing tests
Expand Down
24 changes: 16 additions & 8 deletions tests/test_gang.F90
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ SUBROUTINE GET_HOST_YLF4
ENDDO
ENDDO

CALL CHECK_STATUS
! STATUS doesn't need to be synchronised for RDONLY calls to buffer
! CALL CHECK_STATUS

END SUBROUTINE

Expand Down Expand Up @@ -529,7 +530,8 @@ SUBROUTINE GET_DEVICE_YLF4

!$acc end serial

CALL CHECK_STATUS
! STATUS doesn't need to be synchronised for RDONLY calls to buffer
! CALL CHECK_STATUS

END SUBROUTINE

Expand Down Expand Up @@ -599,7 +601,8 @@ SUBROUTINE SET_HOST_YLF3 (KFLD)
ENDDO
ENDDO

CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

ENDDO

Expand All @@ -616,7 +619,8 @@ SUBROUTINE SET_DEVICE_YLF3 (KFLD)

DO JDIM = 1, SIZE (KFLD)

CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

JFLD = KFLD (JDIM)

Expand All @@ -626,7 +630,8 @@ SUBROUTINE SET_DEVICE_YLF3 (KFLD)

ZDEVICE3 => GET_DEVICE_DATA_RDWR (YLF3L (JFLD)%PTR)

CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

CALL CHECK_DIMS_YLF3 (ZDEVICE3)

Expand All @@ -645,7 +650,8 @@ SUBROUTINE SET_DEVICE_YLF3 (KFLD)
!$acc end serial


CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

ENDDO

Expand Down Expand Up @@ -692,7 +698,8 @@ SUBROUTINE GET_DEVICE_YLF3 (KFLD)
!$acc end serial


CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

ENDDO

Expand Down Expand Up @@ -732,7 +739,8 @@ SUBROUTINE GET_HOST_YLF3 (KFLD)
ENDDO
ENDDO

CALL CHECK_STATUS
! STATUS is only synced when calling GET/SYNC_HOST/DEVICE methods are called on BUFFER
! CALL CHECK_STATUS

ENDDO

Expand Down

0 comments on commit 99d6724

Please sign in to comment.