Skip to content

Commit 3ba61b6

Browse files
haozhihanQuantumMisaka
authored andcommitted
update __MLALGO
1 parent 5fd50f7 commit 3ba61b6

File tree

88 files changed

+3027
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3027
-112
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ if(ENABLE_MLALGO)
499499
include_directories(${libnpy_INCLUDE_DIR})
500500
endif()
501501
include_directories(${libnpy_SOURCE_DIR}/include)
502-
add_compile_definitions(__DMLALGO)
502+
# add_compile_definitions(__MLALGO)
503503
endif()
504504

505505
if(ENABLE_MLALGO)
@@ -518,7 +518,7 @@ if(ENABLE_MLALGO)
518518
include_directories(${libnpy_INCLUDE_DIR})
519519
endif()
520520
include_directories(${libnpy_SOURCE_DIR}/include)
521-
add_compile_definitions(__MLKEDF)
521+
add_compile_definitions(__MLALGO)
522522
endif()
523523

524524
# Torch uses outdated components to detect CUDA arch, causing failure on

doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,7 @@ INCLUDE_FILE_PATTERNS =
22012201
# recursively expanded use the := operator instead of the = operator.
22022202
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
22032203

2204-
PREDEFINED = "__DMLALGO:=LCAO_Deepks" \
2204+
PREDEFINED = "__MLALGO:=LCAO_Deepks" \
22052205
"__MPI"
22062206

22072207
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this

source/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ endif
138138
ifdef LIBNPY_DIR
139139
CNPY_INCLUDE_DIR = -I${LIBNPY_DIR}/include
140140
ifeq ($(ENABLE_MLALGO), ON)
141-
HONG += -D__DMLALGO
142-
HONG += -D__MLKEDF
141+
HONG += -D__MLALGO
142+
# HONG += -D__MLALGO
143143
endif
144144
INCLUDES += $(CNPY_INCLUDE_DIR)
145145
endif

source/module_basis/module_pw/test_serial/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ remove_definitions(-D__CUDA)
44
remove_definitions(-D__UT_USE_CUDA)
55
remove_definitions(-D__ROCM)
66
remove_definitions(-D__UT_USE_ROCM)
7-
remove_definitions(-D__DMLALGO)
7+
remove_definitions(-D__MLALGO)
88

99
add_library(
1010
planewave_serial

source/module_cell/module_neighbor/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
remove_definitions(-D__DMLALGO)
1+
remove_definitions(-D__MLALGO)
22
remove_definitions(-D__CUDA)
33
#include "module_/.h"
44
remove_definitions(-D__ROCM)

source/module_cell/module_symmetry/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
remove_definitions(-D__LCAO)
2-
remove_definitions(-D__DMLALGO)
2+
remove_definitions(-D__MLALGO)
33
remove_definitions(-D__CUDA)
44
remove_definitions(-D__ROCM)
55
AddTest(

source/module_cell/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
remove_definitions(-D__DMLALGO)
1+
remove_definitions(-D__MLALGO)
22
remove_definitions(-D__CUDA)
33
remove_definitions(-D__ROCM)
44
remove_definitions(-D__EXX)

source/module_cell/test_pw/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
remove_definitions(-D__DMLALGO)
1+
remove_definitions(-D__MLALGO)
22
remove_definitions(-D__CUDA)
33
remove_definitions(-D__ROCM)
44
remove_definitions(-D__EXX)

source/module_elecstate/elecstate_print.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void print_etot(const Magnetism& magnet,
295295
energies_Ry.push_back(elecstate::Gatefield::etotgatefield);
296296
}
297297

298-
#ifdef __DMLALGO
298+
#ifdef __MLALGO
299299
if (PARAM.inp.deepks_scf)
300300
{
301301
titles.push_back("E_DeePKS");

source/module_elecstate/kernels/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ remove_definitions(-D__MPI)
22
remove_definitions(-D__EXX)
33
remove_definitions(-D__CUDA)
44
remove_definitions(-D__ROCM)
5-
remove_definitions(-D__DMLALGO)
5+
remove_definitions(-D__MLALGO)
66

77
AddTest(
88
TARGET Elecstate_Kernels_UTs

0 commit comments

Comments
 (0)