Skip to content

Commit

Permalink
Rename preproc def to guard cuda functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Nov 22, 2024
1 parent ca9a1a3 commit 6ba169d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ecwam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ ecbuild_add_library(
$<${HAVE_ACC}:OpenACC::OpenACC_Fortran>
PUBLIC_INCLUDES $<INSTALL_INTERFACE:include>
PRIVATE_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE_DEFINITIONS ${ECWAM_PRIVATE_DEFINITIONS} $<${HAVE_CUDA}:_CUDA>
PRIVATE_DEFINITIONS ${ECWAM_PRIVATE_DEFINITIONS} $<${HAVE_CUDA}:WAM_HAVE_CUDA>
PUBLIC_DEFINITIONS ${ECWAM_DEFINITIONS}
)

Expand Down
2 changes: 1 addition & 1 deletion src/ecwam/wvalloc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SUBROUTINE WVALLOC
! 1. ALLOCATE NECESSARY ARRAYS
! -------------------------

#ifdef _CUDA
#ifdef WAM_HAVE_CUDA
!.... Enable pinning of fields in page-locked memory
INIT_PINNED_VALUE=.TRUE.
#endif
Expand Down

0 comments on commit 6ba169d

Please sign in to comment.