Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ if( (NOT HAVE_CPU) AND (NOT HAVE_GPU) )
ecbuild_critical("Please enable one or both of the CPU and GPU features")
endif()

if( HAVE_GPU AND HAVE_MPI )
ecbuild_find_package( NAME MPI REQUIRED COMPONENTS Fortran )
endif()

if( HAVE_GPU )
if( HAVE_ACC )
set( GPU_OFFLOAD "ACC" )
Expand All @@ -143,7 +147,6 @@ ecbuild_add_option( FEATURE CUTLASS_3XTF32
ecbuild_add_option( FEATURE GPU_AWARE_MPI
DEFAULT ON
CONDITION HAVE_GPU AND HAVE_MPI
REQUIRED_PACKAGES "MPI COMPONENTS Fortran"
DESCRIPTION "Enable GPU-aware MPI" )

ecbuild_add_option( FEATURE GPU_GRAPHS_GEMM
Expand Down
Loading