File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 name : " Build without LCAO"
4242 - tag : gnu
4343 external_toolchain_args : " "
44- build_args : " -DUSE_ELPA =OFF "
44+ build_args : " -DENABLE_ELPA =OFF "
4545 name : " Build without ELPA"
4646 - tag : gnu
4747 external_toolchain_args : " "
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ option(ENABLE_RAPIDJSON "Enable rapid-json usage" OFF)
6565option (ENABLE_CNPY "Enable cnpy usage" OFF )
6666
6767# Options requiring MPI and LCAO
68- cmake_dependent_option (ENABLE_ELPA "Enable ELPA for LCAO " ON "ENABLE_LCAO; ENABLE_MPI" OFF )
68+ cmake_dependent_option (ENABLE_ELPA "Enable ELPA eigensolver " ON "ENABLE_MPI" OFF )
6969cmake_dependent_option (ENABLE_LIBRI "Enable LibRI for hybrid functional"
7070 OFF "ENABLE_LCAO;ENABLE_MPI" OFF )
7171cmake_dependent_option (ENABLE_PEXSI "Enable PEXSI for LCAO" OFF "ENABLE_LCAO;ENABLE_MPI" OFF )
@@ -304,17 +304,15 @@ if(CMAKE_CXX_COMPILER_ID MATCHES Intel)
304304 set (ENABLE_ABACUS_LIBM OFF )
305305endif ()
306306
307- if (ENABLE_LCAO)
308- if (ENABLE_ELPA)
309- find_package (ELPA REQUIRED )
310- endif ()
311- if (ENABLE_PEXSI)
312- find_package (PEXSI REQUIRED CONFIG )
313- if (PEXSI_VERSION VERSION_LESS "2.0.0" )
314- message (FATAL_ERROR "PEXSI >= 2.0.0 is required" )
315- endif ()
316- set (CMAKE_CXX_STANDARD 14)
307+ if (ENABLE_ELPA)
308+ find_package (ELPA REQUIRED )
309+ endif ()
310+ if (ENABLE_PEXSI)
311+ find_package (PEXSI REQUIRED CONFIG )
312+ if (PEXSI_VERSION VERSION_LESS "2.0.0" )
313+ message (FATAL_ERROR "PEXSI >= 2.0.0 is required" )
317314 endif ()
315+ set (CMAKE_CXX_STANDARD 14)
318316endif ()
319317
320318if (ENABLE_MPI)
Original file line number Diff line number Diff line change @@ -126,13 +126,6 @@ else()
126126 set (ABACUS_LCAO_ENABLED "False" )
127127endif ()
128128
129- # Core Math Libraries
130- if (ENABLE_LCAO AND ENABLE_ELPA)
131- set (ABACUS_ELPA_VERSION "yes (v${ELPA_VERSION} )" )
132- else ()
133- set (ABACUS_ELPA_VERSION "no" )
134- endif ()
135-
136129# BLAS and FFTW libraries
137130if (MKL_FOUND)
138131 set (ABACUS_BLAS_VENDOR "MKL" )
@@ -179,6 +172,13 @@ else()
179172 endif ()
180173endif ()
181174
175+ # ELPA eigensolver
176+ if (ENABLE_ELPA)
177+ set (ABACUS_ELPA_VERSION "yes (v${ELPA_VERSION} )" )
178+ else ()
179+ set (ABACUS_ELPA_VERSION "no" )
180+ endif ()
181+
182182if (ENABLE_LIBXC AND Libxc_VERSION)
183183 set (ABACUS_LIBXC_VERSION "yes (v${Libxc_VERSION} )" )
184184elseif (ENABLE_LIBXC)
You can’t perform that action at this time.
0 commit comments