Skip to content

Commit

Permalink
Use acc host_data instead of runtime ACC_DEVICEPTR in COPY_DIM_CONTIG…
Browse files Browse the repository at this point in the history
…UOUS
  • Loading branch information
awnawab committed Jan 24, 2024
1 parent 495f0b6 commit 55c299b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions field_RANKSUFF_data_module.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ CONTAINS
#:set indent = ' ' * (ft.rank - e)
#ifdef _OPENACC
${indent}$ IF(MAP_DEVPTR)THEN
${indent}$ DEVPTR = ACC_DEVICEPTR(DEV (${ar}$))
${indent}$ !$acc host_data use_device(DEV)
${indent}$ DEVPTR = C_DEVLOC(DEV (${ar}$))
${indent}$ !$acc end host_data
${indent}$ ELSE
#:if defined('CUDA')
!$acc data deviceptr(DEVPTR, DEV)
${indent}$ !$acc data deviceptr(DEVPTR, DEV)
${indent}$ DEVPTR = C_DEVLOC(DEV (${ar}$))
!$acc end data
#:endif
${indent}$ !$acc end data
${indent}$ ENDIF
#endif
#:if d == 0
Expand Down

0 comments on commit 55c299b

Please sign in to comment.