Skip to content

Commit

Permalink
Use default value INIT_MAP_DEVPTR in OWNER constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarguinaud committed Jan 24, 2024
1 parent 670f3f1 commit c2da9dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion field_RANKSUFF_module.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ CONTAINS
ENDIF
#:if not defined('CUDA')
IF(.NOT. SELF%MAP_DEVPTR)THEN
CALL FIELD_ABORT ("${ftn}$_OWNER_INIT: CUDA backend needed to disable host-mapped device-pointer")
CALL FIELD_ABORT ("${ftn}$_WRAPPER_INIT: CUDA backend needed to disable host-mapped device-pointer")
ENDIF
#:endif

Expand Down Expand Up @@ -212,6 +212,7 @@ CONTAINS
SELF%PINNED = PINNED
ENDIF

SELF%MAP_DEVPTR = INIT_MAP_DEVPTR
IF(PRESENT(MAP_DEVPTR))THEN
SELF%MAP_DEVPTR = MAP_DEVPTR
ENDIF
Expand Down

0 comments on commit c2da9dd

Please sign in to comment.