Skip to content

Commit 3cb099e

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into develop
2 parents b478339 + c7ea97c commit 3cb099e

File tree

3,138 files changed

+67862
-689397
lines changed

Some content is hidden

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

3,138 files changed

+67862
-689397
lines changed

.github/workflows/build_test_cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: "Build with Intel toolchain"
1818

1919
- tag: gnu
20-
build_args: "-DENABLE_LIBXC=1 -DENABLE_DEEPKS=1 -DENABLE_MLKEDF=1 -DENABLE_LIBRI=1 -DENABLE_PAW=1"
20+
build_args: "-DENABLE_LIBXC=1 -DENABLE_DEEPKS=1 -DENABLE_MLKEDF=1 -DENABLE_LIBRI=1"
2121
name: "Build extra components with GNU toolchain"
2222
- tag: intel
2323
build_args: "-DENABLE_LIBXC=1 -DENABLE_DEEPKS=1 -DENABLE_MLKEDF=1 -DENABLE_LIBRI=1"

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
apt update && apt install -y lcov gpg curl jq ca-certificates
1919
- name: Building
2020
run: |
21-
cmake -B build -DENABLE_COVERAGE=ON -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_PAW=ON -DENABLE_GOOGLEBENCH=ON -DENABLE_RAPIDJSON=ON
21+
cmake -B build -DENABLE_COVERAGE=ON -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_GOOGLEBENCH=ON -DENABLE_RAPIDJSON=ON
2222
cmake --build build -j`nproc`
2323
cmake --install build
2424
- name: Testing

.github/workflows/cuda.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,27 @@ jobs:
3737
cmake --build build -j4
3838
cmake --install build
3939
40-
- name: Test
40+
- name: Test 11_PW_GPU
4141
run: |
42-
cd tests/integrate
43-
bash Autotest.sh -n 2 -f CASES_GPU.txt
42+
cd tests/11_PW_GPU
43+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
44+
45+
- name: Test 12_NAO_Gamma_GPU
46+
run: |
47+
cd tests/12_NAO_Gamma_GPU
48+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
49+
50+
- name: Test 13_NAO_multik_GPU
51+
run: |
52+
cd tests/13_NAO_multik_GPU
53+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
54+
55+
- name: Test 15_rtTDDFT_GPU
56+
run: |
57+
cd tests/15_rtTDDFT_GPU
58+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt
59+
60+
- name: Test 16_SDFT_GPU
61+
run: |
62+
cd tests/16_SDFT_GPU
63+
bash ../integrate/Autotest.sh -n 2 -f CASES_GPU.txt

.github/workflows/test.yml

Lines changed: 130 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Configure
3333
run: |
34-
cmake -B build -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_MLKEDF=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_PAW=ON -DENABLE_GOOGLEBENCH=ON -DENABLE_RAPIDJSON=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1
34+
cmake -B build -DBUILD_TESTING=ON -DENABLE_DEEPKS=ON -DENABLE_MLKEDF=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_GOOGLEBENCH=ON -DENABLE_RAPIDJSON=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DENABLE_FLOAT_FFTW=ON
3535
3636
# Temporarily removed because no one maintains this now.
3737
# And it will break the CI test workflow.
@@ -48,9 +48,136 @@ jobs:
4848
run: |
4949
cmake --build build -j8
5050
cmake --install build
51-
- name: Test
51+
52+
- name: Integrated Tests Preparation
53+
env:
54+
GTEST_COLOR: 'yes'
55+
OMP_NUM_THREADS: '2'
56+
run: |
57+
cmake --build build --target test ARGS="-V --timeout 1700 -R integrated_test"
58+
59+
- name: Module_Base Unittests
60+
env:
61+
GTEST_COLOR: 'yes'
62+
OMP_NUM_THREADS: '2'
63+
run: |
64+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_BASE"
65+
66+
- name: Module_IO Unittests
67+
env:
68+
GTEST_COLOR: 'yes'
69+
OMP_NUM_THREADS: '2'
70+
run: |
71+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_IO"
72+
73+
- name: Module_HSolver Unittests
74+
env:
75+
GTEST_COLOR: 'yes'
76+
OMP_NUM_THREADS: '2'
77+
run: |
78+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_HSOLVER"
79+
80+
- name: Module_Cell Unittests
81+
env:
82+
GTEST_COLOR: 'yes'
83+
OMP_NUM_THREADS: '2'
84+
run: |
85+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_CELL"
86+
87+
- name: Module_MD Unittests
88+
env:
89+
GTEST_COLOR: 'yes'
90+
OMP_NUM_THREADS: '2'
91+
run: |
92+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_MD"
93+
94+
- name: Module_Psi Unittests
95+
env:
96+
GTEST_COLOR: 'yes'
97+
OMP_NUM_THREADS: '2'
98+
run: |
99+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_PSI"
100+
101+
- name: Module_RI Unittests
102+
env:
103+
GTEST_COLOR: 'yes'
104+
OMP_NUM_THREADS: '2'
105+
run: |
106+
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_RI"
107+
108+
- name: 01_PW Test
109+
env:
110+
GTEST_COLOR: 'yes'
111+
OMP_NUM_THREADS: '2'
112+
run: |
113+
cmake --build build --target test ARGS="-V --timeout 1700 -R 01_PW"
114+
115+
- name: 02_NAO_Gamma Test
116+
env:
117+
GTEST_COLOR: 'yes'
118+
OMP_NUM_THREADS: '2'
119+
run: |
120+
cmake --build build --target test ARGS="-V --timeout 1700 -R 02_NAO_Gamma"
121+
122+
- name: 03_NAO_multik Test
123+
env:
124+
GTEST_COLOR: 'yes'
125+
OMP_NUM_THREADS: '2'
126+
run: |
127+
cmake --build build --target test ARGS="-V --timeout 1700 -R 03_NAO_multik"
128+
129+
- name: 04_LJ_DP Test
130+
env:
131+
GTEST_COLOR: 'yes'
132+
OMP_NUM_THREADS: '2'
133+
run: |
134+
cmake --build build --target test ARGS="-V --timeout 1700 -R 04_LJ_DP"
135+
136+
- name: 05_rtTDDFT Test
137+
env:
138+
GTEST_COLOR: 'yes'
139+
OMP_NUM_THREADS: '2'
140+
run: |
141+
cmake --build build --target test ARGS="-V --timeout 1700 -R 05_rtTDDFT"
142+
143+
- name: 06_SDFT Test
144+
env:
145+
GTEST_COLOR: 'yes'
146+
OMP_NUM_THREADS: '2'
147+
run: |
148+
cmake --build build --target test ARGS="-V --timeout 1700 -R 06_SDFT"
149+
150+
- name: 07_OFDFT Test
151+
env:
152+
GTEST_COLOR: 'yes'
153+
OMP_NUM_THREADS: '2'
154+
run: |
155+
cmake --build build --target test ARGS="-V --timeout 1700 -R 07_OFDFT"
156+
157+
- name: 08_EXX Test
158+
env:
159+
GTEST_COLOR: 'yes'
160+
OMP_NUM_THREADS: '2'
161+
run: |
162+
cmake --build build --target test ARGS="-V --timeout 1700 -R 08_EXX"
163+
164+
- name: 09_DeePKS Test
165+
env:
166+
GTEST_COLOR: 'yes'
167+
OMP_NUM_THREADS: '2'
168+
run: |
169+
cmake --build build --target test ARGS="-V --timeout 1700 -R 09_DeePKS"
170+
171+
- name: 10_others Test
172+
env:
173+
GTEST_COLOR: 'yes'
174+
OMP_NUM_THREADS: '2'
175+
run: |
176+
cmake --build build --target test ARGS="-V --timeout 1700 -R 10_others"
177+
178+
- name: Other Unittests
52179
env:
53180
GTEST_COLOR: 'yes'
54181
OMP_NUM_THREADS: '2'
55182
run: |
56-
cmake --build build --target test ARGS="-V --timeout 1700"
183+
cmake --build build --target test ARGS="-V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_LJ_DP|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_RI'"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ __pycache__
2323
abacus.json
2424
*.npy
2525
toolchain/install/
26-
toolchain/abacus_env.sh
26+
toolchain/abacus_env.sh

CMakeLists.txt

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ option(INFO "Enable gathering math library information" OFF)
3737
option(ENABLE_COVERAGE "Enable coverage build" OFF)
3838
option(GIT_SUBMODULE "Check submodules during build" ON)
3939

40-
option(ENABLE_PAW "Enable PAW method" OFF)
41-
4240
# Do not enable it if generated code will run on different CPUs
4341
option(ENABLE_NATIVE_OPTIMIZATION
4442
"Enable compilation optimization for the native machine's CPU type" OFF)
@@ -190,6 +188,7 @@ find_program(CCACHE ccache)
190188
if(CCACHE)
191189
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_CXX_COMPILER_LAUNCHER})
192190
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_C_COMPILER_LAUNCHER})
191+
set(CMAKE_CUDA_COMPILER_LAUNCHER ${CCACHE} ${CMAKE_CUDA_COMPILER_LAUNCHER})
193192
endif()
194193

195194
# Choose build type from: Debug Release RelWithDebInfo MinSizeRel Select
@@ -270,6 +269,7 @@ if(ENABLE_MPI)
270269
list(APPEND math_libs MPI::MPI_CXX)
271270
endif()
272271

272+
273273
if (USE_DSP)
274274
add_compile_definitions(__DSP)
275275
target_link_libraries(${ABACUS_BIN_NAME} ${OMPI_LIBRARY1})
@@ -610,18 +610,7 @@ if(ENABLE_LIBCOMM)
610610
include_directories(${LIBCOMM_DIR}/include)
611611
endif()
612612

613-
if(ENABLE_PAW)
614-
if(LIBPAW_DIR)
615-
add_subdirectory(${LIBPAW_DIR})
616-
elseif(GIT_SUBMODULE)
617-
git_submodule_update()
618-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/deps/libpaw_interface)
619-
else()
620-
message(FATAL_ERROR "Must provide LIBPAW_DIR for PAW related features.")
621-
endif()
622-
target_link_libraries(${ABACUS_BIN_NAME} paw)
623-
add_compile_definitions(USE_PAW)
624-
endif()
613+
625614

626615
list(APPEND math_libs m)
627616
target_link_libraries(${ABACUS_BIN_NAME} ${math_libs})
@@ -797,4 +786,4 @@ install(PROGRAMS ${ABACUS_BIN_PATH}
797786

798787
if(ENABLE_COVERAGE)
799788
coverage_evaluate()
800-
endif()
789+
endif()

cmake/FindCereal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(NOT CEREAL_INCLUDE_DIR)
1515
include(FetchContent)
1616
FetchContent_Declare(
1717
cereal
18-
URL https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.0.tar.gz
18+
URL https://github.com/USCiLab/cereal/archive/refs/tags/v1.3.2.tar.gz
1919
)
2020
FetchContent_Populate(cereal)
2121
set(CEREAL_INCLUDE_DIR ${cereal_SOURCE_DIR}/include)

docs/advanced/elec_properties/wfc.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ In the LCAO basis case, several `WFC_NAO_K${k}.dat` files will be output in mult
99

1010
## wave function in real space
1111

12-
One can also choose to output real-space wave function in PW basis calculation with the key word ***[out_wfc_r](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out_wfc_r)***.
13-
14-
After calculation, an additional directory named `wfc_realspace` will appear in the `OUT.${system}` directory.
12+
One can also choose to output real-space wave function in PW basis calculation with the key word ***[out_wfc_norm](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#out-wfc-norm)***.
1513

1614
Notice: when the ***[basis_type](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#basis_type)*** is `lcao`, only `get_wf` ***[calculation](https://abacus-rtd.readthedocs.io/en/latest/advanced/input_files/input-main.html#calculation)*** is effective. An example is [examples/wfc/lcao_ienvelope_Si2](https://github.com/deepmodeling/abacus-develop/tree/develop/examples/wfc/lcao_ienvelope_Si2).

0 commit comments

Comments
 (0)