@@ -21,8 +21,11 @@ option(USE_DSP "Enable DSP" OFF)
2121option (USE_ABACUS_LIBM "Build libmath from source to speed up" OFF )
2222option (ENABLE_LIBXC "Enable using the LibXC package" OFF )
2323option (ENABLE_FLOAT_FFTW "Enable using single-precision FFTW library." OFF )
24- option (ENABLE_DEEPKS "Enable the DeePKS algorithm" OFF )
25- option (ENABLE_MLKEDF "Enable the Machine-Learning-based KEDF for OFDFT" OFF )
24+
25+ # option(ENABLE_DEEPKS "Enable the DeePKS algorithm" OFF)
26+ # option(ENABLE_MLKEDF "Enable the Machine-Learning-based KEDF for OFDFT" OFF)
27+
28+ option (ENABLE_ML4DFT "Enable the Machine-Learning for OFDFT" OFF )
2629
2730option (ENABLE_LCAO "Enable LCAO algorithm" ON )
2831option (USE_ELPA "Enable ELPA for LCAO" ON )
@@ -115,7 +118,7 @@ endif()
115118# Serial version of ABACUS will not use ELPA
116119if (NOT ENABLE_MPI)
117120 set (USE_ELPA OFF )
118- set (ENABLE_DEEPKS OFF )
121+ set (ENABLE_ML4DFT OFF )
119122endif ()
120123
121124# Different exe files of ABACUS
@@ -253,7 +256,7 @@ if(ENABLE_LCAO)
253256 add_compile_definitions (__NEW_GINT)
254257 endif ()
255258else ()
256- set (ENABLE_DEEPKS OFF )
259+ set (ENABLE_ML4DFT OFF )
257260 set (ENABLE_LIBRI OFF )
258261endif ()
259262
@@ -480,7 +483,7 @@ if(ENABLE_FLOAT_FFTW)
480483 add_definitions (-D__ENABLE_FLOAT_FFTW)
481484endif ()
482485
483- if (ENABLE_DEEPKS )
486+ if (ENABLE_ML4DFT )
484487 target_link_libraries (${ABACUS_BIN_NAME} deepks)
485488
486489 find_path (libnpy_SOURCE_DIR npy.hpp HINTS ${libnpy_INCLUDE_DIR} )
@@ -499,7 +502,7 @@ if(ENABLE_DEEPKS)
499502 add_compile_definitions (__DEEPKS)
500503endif ()
501504
502- if (ENABLE_MLKEDF )
505+ if (ENABLE_ML4DFT )
503506 target_link_libraries (${ABACUS_BIN_NAME} hamilt_mlkedf)
504507
505508 find_path (libnpy_SOURCE_DIR npy.hpp HINTS ${libnpy_INCLUDE_DIR} )
@@ -521,7 +524,7 @@ endif()
521524# Torch uses outdated components to detect CUDA arch, causing failure on
522525# latest CUDA kits. Set CMake variable TORCH_CUDA_ARCH_LIST in the form of
523526# "major.minor" if required.
524- if (ENABLE_DEEPKS OR ENABLE_MLKEDF OR DEFINED Torch_DIR)
527+ if (ENABLE_ML4DFT OR DEFINED Torch_DIR)
525528 find_package (Torch REQUIRED)
526529 if (NOT Torch_VERSION VERSION_LESS "2.1.0" )
527530 set_if_higher(CMAKE_CXX_STANDARD 17)
0 commit comments