Skip to content

Commit 7a9686b

Browse files
committed
USE_CUDA_MPI requires ENABLE_MPI; minor formatting
1 parent 5b342ef commit 7a9686b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ option(ENABLE_RAPIDJSON "Enable rapid-json usage" OFF)
5858
option(ENABLE_CNPY "Enable cnpy usage" OFF)
5959

6060
cmake_dependent_option(ENABLE_ELPA "Enable ELPA for LCAO" ON "ENABLE_LCAO;ENABLE_MPI" OFF)
61-
cmake_dependent_option(ENABLE_LIBRI "Enable LibRI for hybrid functional" OFF "ENABLE_LCAO;ENABLE_MPI" OFF)
61+
cmake_dependent_option(ENABLE_LIBRI "Enable LibRI for hybrid functional"
62+
OFF "ENABLE_LCAO;ENABLE_MPI" OFF)
6263
cmake_dependent_option(EXX_DEV "Enable LibRI developing features" OFF "ENABLE_LIBRI" OFF)
6364
cmake_dependent_option(ENABLE_PEXSI "Enable PEXSI for LCAO" OFF "ENABLE_LCAO;ENABLE_MPI" OFF)
6465
cmake_dependent_option(ENABLE_MLALGO "Enable the machine learning algorithms"
6566
OFF "ENABLE_LCAO;ENABLE_MPI" OFF)
6667

67-
cmake_dependent_option(USE_CUDA_MPI "Enable CUDA-aware MPI" OFF "USE_CUDA" OFF)
68+
cmake_dependent_option(USE_CUDA_MPI "Enable CUDA-aware MPI" OFF "USE_CUDA;ENABLE_MPI" OFF)
6869
cmake_dependent_option(ENABLE_CUSOLVERMP "Enable cusolvermp" OFF "USE_CUDA" OFF)
6970
cmake_dependent_option(ENABLE_CUBLASMP "Enable cublasmp" OFF "ENABLE_CUSOLVERMP" OFF)
7071
cmake_dependent_option(ENABLE_NCCL_PARALLEL_DEVICE
@@ -145,7 +146,8 @@ if(ENABLE_RAPIDJSON)
145146
if(NOT TARGET RapidJSON)
146147
message(
147148
FATAL_ERROR
148-
"RapidJSON was found, but target RapidJSON is missing. Check if your RapidJSON installation provides a complete exported CMake configuration."
149+
"RapidJSON was found, but target RapidJSON is missing. "
150+
"Check if your RapidJSON installation provides a complete exported CMake configuration."
149151
)
150152
endif()
151153
abacus_add_feature_definitions(__RAPIDJSON)
@@ -157,8 +159,8 @@ if(COMMIT_INFO)
157159
if(NOT Git_FOUND)
158160
message(
159161
WARNING
160-
"Git is not found, and abacus will not output the git commit information in log. \n\
161-
You can install Git first and reinstall abacus.")
162+
"Git is not found, and abacus will not output the git commit information in log.\n"
163+
"You can install Git first and reinstall abacus.")
162164
else()
163165
message(STATUS "Found git: attempting to get commit info...")
164166
execute_process(

0 commit comments

Comments
 (0)