Skip to content

Commit 080f919

Browse files
committed
merge
2 parents 6f98c30 + 0aba423 commit 080f919

File tree

137 files changed

+5311
-4181
lines changed

Some content is hidden

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

137 files changed

+5311
-4181
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ jobs:
3333
run: |
3434
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
3535
36-
- uses: pre-commit/[email protected]
37-
with:
38-
extra_args:
39-
--from-ref ${{ github.event.pull_request.base.sha }}
40-
--to-ref ${{ github.event.pull_request.head.sha }}
41-
continue-on-error: true
42-
- uses: pre-commit-ci/[email protected]
36+
# Temporarily removed because no one maintains this now.
37+
# And it will break the CI test workflow.
38+
39+
# - uses: pre-commit/[email protected]
40+
# with:
41+
# extra_args:
42+
# --from-ref ${{ github.event.pull_request.base.sha }}
43+
# --to-ref ${{ github.event.pull_request.head.sha }}
44+
# continue-on-error: true
45+
# - uses: pre-commit-ci/[email protected]
4346

4447
- name: Build
4548
run: |

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ if(ENABLE_MPI)
262262
endif()
263263

264264
if (USE_DSP)
265-
target_link_libraries(${ABACUS_BIN_NAME} ${DIR_MTBLAS_LIBRARY})
266265
add_compile_definitions(__DSP)
266+
target_link_libraries(${ABACUS_BIN_NAME} ${OMPI_LIBRARY1})
267+
include_directories(${MTBLAS_FFT_DIR}/libmtblas/include)
268+
include_directories(${MT_HOST_DIR}/include)
269+
target_link_libraries(${ABACUS_BIN_NAME} ${MT_HOST_DIR}/hthreads/lib/libhthread_device.a)
270+
target_link_libraries(${ABACUS_BIN_NAME} ${MT_HOST_DIR}/hthreads/lib/libhthread_host.a)
267271
endif()
268272

269273
find_package(Threads REQUIRED)
@@ -434,10 +438,8 @@ else()
434438
find_package(Lapack REQUIRED)
435439
include_directories(${FFTW3_INCLUDE_DIRS})
436440
list(APPEND math_libs FFTW3::FFTW3 LAPACK::LAPACK BLAS::BLAS)
437-
438441
find_package(ScaLAPACK REQUIRED)
439442
list(APPEND math_libs ScaLAPACK::ScaLAPACK)
440-
441443
if(USE_OPENMP)
442444
list(APPEND math_libs FFTW3::FFTW3_OMP)
443445
endif()

source/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ if(USE_ROCM)
104104
)
105105
endif()
106106

107+
if(USE_DSP)
108+
list(APPEND device_srcs
109+
module_base/kernels/dsp/dsp_connector.cpp
110+
)
111+
endif()
112+
113+
107114
add_library(device OBJECT ${device_srcs})
108115

109116
if(USE_CUDA)

source/Makefile.Objects

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ OBJS_DEEPKS=LCAO_deepks.o\
200200
deepks_descriptor.o\
201201
deepks_force.o\
202202
deepks_fpre.o\
203+
deepks_iterate.o\
203204
deepks_spre.o\
204205
deepks_orbital.o\
205206
deepks_orbpre.o\
@@ -259,6 +260,7 @@ OBJS_ESOLVER=esolver.o\
259260
OBJS_ESOLVER_LCAO=esolver_ks_lcao.o\
260261
esolver_ks_lcao_tddft.o\
261262
lcao_before_scf.o\
263+
lcao_after_scf.o\
262264
esolver_gets.o\
263265
lcao_others.o\
264266

source/module_base/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ add_library(
6565
)
6666

6767
target_link_libraries(base PUBLIC container)
68-
68+
if (USE_DSP)
69+
target_link_libraries(base PUBLIC ${MTBLAS_FFT_DIR}/libmtblas/lib/libmtblas.a)
70+
target_link_libraries(base PUBLIC ${MTBLAS_FFT_DIR}/libmtblas/lib/libmtblasdev.a)
71+
endif()
6972
add_subdirectory(module_container)
7073

7174
if(ENABLE_COVERAGE)

0 commit comments

Comments
 (0)