Skip to content

Commit 377fe68

Browse files
authored
Merge branch 'develop' into ppcg
2 parents b75d9d8 + 2d21aec commit 377fe68

827 files changed

Lines changed: 24863 additions & 8598 deletions

File tree

Some content is hidden

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

.github/workflows/ase_plugin_test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Atomic Simulation Environment (ASE) Plugin Test
33
on:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
name: abacuslite
@@ -12,7 +16,7 @@ jobs:
1216

1317
steps:
1418
- name: Checkout code
15-
uses: actions/checkout@v6
19+
uses: actions/checkout@v7
1620

1721
- name: Set up Miniconda
1822
uses: conda-incubator/setup-miniconda@v4
@@ -33,15 +37,24 @@ jobs:
3337
cd interfaces/ASE_interface
3438
pip install .
3539
40+
- name: Install external tools from toolchain
41+
run: |
42+
sudo apt update && sudo apt install -y xz-utils ninja-build
43+
cd toolchain
44+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
45+
./scripts/stage4/install_stage4.sh
46+
cd ..
47+
3648
- name: Configure & Build ABACUS (GNU)
3749
run: |
3850
git config --global --add safe.directory `pwd`
3951
export LD_LIBRARY_PATH=${GKLIB_ROOT}/lib:${METIS32_ROOT}/lib:${PARMETIS32_ROOT}/lib:${SUPERLU32_DIST_ROOT}/lib:${PEXSI32_ROOT}/lib:${LD_LIBRARY_PATH}
4052
export PKG_CONFIG_PATH=${GKLIB_ROOT}/lib/pkgconfig:${METIS32_ROOT}/lib/pkgconfig:${PARMETIS32_ROOT}/lib/pkgconfig:${SUPERLU32_DIST_ROOT}/lib/pkgconfig:${PEXSI32_ROOT}/lib/pkgconfig:${PKG_CONFIG_PATH}
4153
export CPATH=${GKLIB_ROOT}/include:${METIS32_ROOT}/include:${PARMETIS32_ROOT}/include:${SUPERLU32_DIST_ROOT}/include:${PEXSI32_ROOT}/include:${CPATH}
4254
export CMAKE_PREFIX_PATH=${PEXSI32_ROOT}:${SUPERLU_DIST32_ROOT}:${PARMETIS32_ROOT}:${METIS32_ROOT}:${GKLIB_ROOT}:${CMAKE_PREFIX_PATH}
55+
source toolchain/install/setup
4356
rm -rf build
44-
cmake -B build
57+
cmake -B build -G Ninja
4558
cmake --build build -j2
4659
4760
- name: Install and Soft Link ABACUS

.github/workflows/build_test_cmake.yml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
runs-on: ubuntu-latest
@@ -13,47 +17,64 @@ jobs:
1317
build_args: ""
1418
name: "Build with GNU toolchain"
1519
- tag: intel
20+
external_toolchain_args: "--with-intel"
1621
build_args: ""
1722
name: "Build with Intel toolchain"
1823

1924
- tag: gnu
20-
build_args: "-DENABLE_LIBXC=1 -DENABLE_MLALGO=1 -DENABLE_LIBRI=1"
25+
external_toolchain_args: ""
26+
build_args: "-DENABLE_LIBXC=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON"
2127
name: "Build extra components with GNU toolchain"
2228
- tag: intel
23-
build_args: "-DENABLE_LIBXC=1 -DENABLE_PEXSI=1 -DENABLE_MLALGO=1 -DENABLE_LIBRI=1"
29+
external_toolchain_args: "--with-intel"
30+
build_args: "-DENABLE_LIBXC=ON -DENABLE_PEXSI=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON"
2431
name: "Build extra components with Intel toolchain"
2532

2633
- tag: cuda
27-
build_args: "-DUSE_CUDA=1"
34+
external_toolchain_args: ""
35+
build_args: "-DUSE_CUDA=ON"
2836
name: "Build with CUDA support"
2937
- tag: gnu
30-
build_args: "-DENABLE_LCAO=0"
38+
external_toolchain_args: ""
39+
build_args: "-DENABLE_LCAO=OFF"
3140
name: "Build without LCAO"
3241
- tag: gnu
33-
build_args: "-DUSE_ELPA=0 "
42+
external_toolchain_args: ""
43+
build_args: "-DUSE_ELPA=OFF "
3444
name: "Build without ELPA"
3545
- tag: gnu
36-
build_args: "-DENABLE_MPI=0"
46+
external_toolchain_args: ""
47+
build_args: "-DENABLE_MPI=OFF"
3748
name: "Build without MPI"
3849
- tag: gnu
39-
build_args: "-DENABLE_MPI=0 -DENABLE_LCAO=0"
50+
external_toolchain_args: ""
51+
build_args: "-DENABLE_MPI=OFF -DENABLE_LCAO=OFF"
4052
name: "Build without LCAO and MPI"
4153

4254
name: ${{ matrix.name }}
4355
container: ghcr.io/deepmodeling/abacus-${{ matrix.tag }}
4456
steps:
4557
- name: Checkout
46-
uses: actions/checkout@v6
58+
uses: actions/checkout@v7
4759
with:
4860
submodules: recursive
4961

62+
- name: Install external tools from toolchain
63+
run: |
64+
sudo apt update && sudo apt install -y gfortran ninja-build xz-utils
65+
cd toolchain
66+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run ${{matrix.external_toolchain_args}}
67+
./scripts/stage4/install_stage4.sh
68+
cd ..
69+
5070
- name: Build
5171
run: |
5272
git config --global --add safe.directory `pwd`
5373
export LD_LIBRARY_PATH=${GKLIB_ROOT}/lib:${METIS32_ROOT}/lib:${PARMETIS32_ROOT}/lib:${SUPERLU32_DIST_ROOT}/lib:${PEXSI32_ROOT}/lib:${LD_LIBRARY_PATH}
5474
export PKG_CONFIG_PATH=${GKLIB_ROOT}/lib/pkgconfig:${METIS32_ROOT}/lib/pkgconfig:${PARMETIS32_ROOT}/lib/pkgconfig:${SUPERLU32_DIST_ROOT}/lib/pkgconfig:${PEXSI32_ROOT}/lib/pkgconfig:${PKG_CONFIG_PATH}
5575
export CPATH=${GKLIB_ROOT}/include:${METIS32_ROOT}/include:${PARMETIS32_ROOT}/include:${SUPERLU32_DIST_ROOT}/include:${PEXSI32_ROOT}/include:${CPATH}
5676
export CMAKE_PREFIX_PATH=${PEXSI32_ROOT}:${SUPERLU_DIST32_ROOT}:${PARMETIS32_ROOT}:${METIS32_ROOT}:${GKLIB_ROOT}:${CMAKE_PREFIX_PATH}
77+
source toolchain/install/setup
5778
rm -rf build
58-
cmake -B build ${{ matrix.build_args }}
59-
cmake --build build -j2
79+
cmake -B build -G Ninja ${{ matrix.build_args }}
80+
cmake --build build -j $(nproc)

.github/workflows/build_test_makefile.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
pull_request:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
test:
812
runs-on: ubuntu-latest
@@ -16,7 +20,7 @@ jobs:
1620
container: ghcr.io/deepmodeling/abacus-${{ matrix.tag }}
1721
steps:
1822
- name: Checkout
19-
uses: actions/checkout@v6
23+
uses: actions/checkout@v7
2024
- name: Build
2125
run: |
2226
export I_MPI_CXX=icpx

.github/workflows/coverage.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,57 @@ on:
55
push:
66
tags:
77
- 'v*'
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
813
jobs:
914
test-coverage:
1015
name: Generate Coverage Report
1116
runs-on: X64
1217
container: ghcr.io/deepmodeling/abacus-gnu
1318
steps:
1419
- name: Checkout
15-
uses: actions/checkout@v6
20+
uses: actions/checkout@v7
1621
with:
1722
submodules: recursive
1823

1924
- name: Install Perl Dependencies and Coverage Tools
2025
run: |
21-
apt update && apt install -y curl jq ca-certificates python3-pip
22-
apt install -y lcov perl-modules
23-
apt install -y libcapture-tiny-perl libdatetime-perl libjson-perl libperlio-gzip-perl
26+
sudo apt update
27+
sudo apt install -y \
28+
curl \
29+
jq \
30+
ca-certificates \
31+
python3-pip \
32+
xz-utils \
33+
ninja-build \
34+
lcov \
35+
perl-modules \
36+
libcapture-tiny-perl \
37+
libdatetime-perl \
38+
libjson-perl \
39+
libperlio-gzip-perl
2440
lcov --version
2541
42+
- name: Install external tools from toolchain
43+
run: |
44+
cd toolchain
45+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
46+
./scripts/stage4/install_stage4.sh
47+
cd ..
48+
2649
- name: Building with Coverage
2750
run: |
51+
source toolchain/install/setup
2852
rm -rf build/
2953
rm -f CMakeCache.txt
3054
3155
mkdir -p build
3256
chmod -R 755 build/
3357
34-
cmake -B build \
58+
cmake -B build -G Ninja \
3559
-DENABLE_COVERAGE=ON \
3660
-DBUILD_TESTING=ON \
3761
-DENABLE_MLALGO=ON \

.github/workflows/cuda.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ on:
44
workflow_dispatch:
55
pull_request:
66

7+
defaults:
8+
run:
9+
shell: bash
10+
711
concurrency:
812
group: ${{ github.workflow }}-${{ github.ref }}
913
cancel-in-progress: true
1014

1115
jobs:
1216
test:
1317
name: Test on CUDA Build
14-
runs-on: nvidia
18+
runs-on: gpu
1519
if: github.repository_owner == 'deepmodeling'
1620
container:
1721
image: ghcr.io/deepmodeling/abacus-cuda
@@ -21,20 +25,28 @@ jobs:
2125

2226
steps:
2327
- name: Checkout
24-
uses: actions/checkout@v6
28+
uses: actions/checkout@v7
2529
with:
2630
submodules: recursive
2731

2832
- name: Install Ccache
2933
run: |
3034
sudo apt-get update
31-
sudo apt-get install -y ccache
35+
sudo apt-get install -y ccache xz-utils ninja-build
36+
37+
- name: Install external tools from toolchain
38+
run: |
39+
cd toolchain
40+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
41+
./scripts/stage4/install_stage4.sh
42+
cd ..
3243
3344
- name: Configure & Build
3445
run: |
3546
nvidia-smi
47+
source toolchain/install/setup
3648
rm -rf build
37-
cmake -B build -DUSE_CUDA=ON -DBUILD_TESTING=ON
49+
cmake -B build -G Ninja -DUSE_CUDA=ON -DBUILD_TESTING=ON
3850
cmake --build build -j4
3951
cmake --install build
4052

.github/workflows/devcontainer.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'v*'
1010
workflow_dispatch:
1111

12+
defaults:
13+
run:
14+
shell: bash
15+
1216
jobs:
1317
build_container_and_push:
1418
runs-on: X64
@@ -24,7 +28,7 @@ jobs:
2428
sudo find ${{ github.workspace }} -mindepth 1 -delete
2529
2630
- name: Checkout
27-
uses: actions/checkout@v6
31+
uses: actions/checkout@v7
2832

2933
- name: Docker meta
3034
id: meta

.github/workflows/doxygen.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
1212

13+
defaults:
14+
run:
15+
shell: bash
16+
1317
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1418
permissions:
1519
contents: read
@@ -30,7 +34,7 @@ jobs:
3034
if: github.repository_owner == 'deepmodeling'
3135
steps:
3236
- name: Checkout
33-
uses: actions/checkout@v6
37+
uses: actions/checkout@v7
3438

3539
- name: Install Doxygen
3640
run: sudo apt-get install doxygen graphviz -y

.github/workflows/dynamic.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- cron: '0 16 * * 0'
66
workflow_dispatch:
77

8+
defaults:
9+
run:
10+
shell: bash
11+
812
jobs:
913
test:
1014
name: Dynamic analysis
@@ -13,10 +17,18 @@ jobs:
1317
container: ghcr.io/deepmodeling/abacus-gnu
1418
steps:
1519
- name: Checkout
16-
uses: actions/checkout@v6
20+
uses: actions/checkout@v7
21+
- name: Install external tools from toolchain
22+
run: |
23+
sudo apt update && sudo apt install -y xz-utils ninja-build
24+
cd toolchain
25+
./install_abacus_toolchain_new.sh --with-dftd4=install --dry-run -j8
26+
./scripts/stage4/install_stage4.sh
27+
cd ..
1728
- name: Building
1829
run: |
19-
cmake -B build -DENABLE_ASAN=1 -DENABLE_MLALGO=1 -DENABLE_LIBXC=1
30+
source toolchain/install/setup
31+
cmake -B build -G Ninja -DENABLE_ASAN=ON -DENABLE_MLALGO=ON -DENABLE_LIBXC=ON
2032
cmake --build build -j8
2133
cmake --install build
2234
- name: Testing

.github/workflows/interface.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: interface
33
on:
44
workflow_dispatch:
55

6+
defaults:
7+
run:
8+
shell: bash
9+
610
jobs:
711
wannier-interface:
812
name: "wannier interface — ${{ matrix.name }}"
@@ -30,7 +34,7 @@ jobs:
3034

3135
steps:
3236
- name: Checkout repository
33-
uses: actions/checkout@v6
37+
uses: actions/checkout@v7
3438

3539
- name: Set up Python 3.10
3640
uses: actions/setup-python@v6

.github/workflows/mirror_gitee.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Mirror to Gitee Repository
22

33
on: [ push, delete, create ]
44

5+
defaults:
6+
run:
7+
shell: bash
8+
59
# Ensures that only one mirror task will run at a time.
610
concurrency:
711
group: git-mirror

0 commit comments

Comments
 (0)