Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
3f807c7
1. Tried to implement a partial compilation scheme for MDs, but no vi…
TrinitroCat Oct 17, 2026
7068f71
1. Try to implement the fused-kernel MDs, both NVT and NVE.
TrinitroCat Oct 18, 2026
30fe453
1. Added the auto-tune for triton kernel. Now if max_steps >= 20_0000…
TrinitroCat Oct 19, 2026
f417616
1. Reformat the MD engine that integrated ConstrMD classes into norma…
TrinitroCat Oct 20, 2026
e779ac2
1. Implemented the automatic tests and CI/CD.
TrinitroCat Oct 20, 2026
5cc64c7
1. Changed some defaults of tests and optimised the default behaviours.
TrinitroCat Oct 20, 2026
416d1b0
1. Remove the support for python 3.11
TrinitroCat Oct 20, 2026
bdcab1c
1. Improved the numeric stability of Fixman term calculation in the `…
TrinitroCat Oct 22, 2026
c507d17
1. Added a automatic detection for constraints threshold. It combine …
TrinitroCat Oct 22, 2026
f853805
1. Fix a bug of the auto-detection of `constr_thres`.
TrinitroCat Oct 22, 2026
0b5d0da
1. Synchronised the regression test for modified constraints solver.
TrinitroCat Oct 23, 2026
096cd1b
1. Supplemented the args of `dump_quantities` and `log_quantities` to…
TrinitroCat Oct 26, 2026
d24a202
1. Supplemented the KrylovNewton and KrylovDynamics algorithm to the …
TrinitroCat Oct 27, 2026
3bab2b0
1. Distinguished the data reader kwargs. Added `FSDATA_READER_KWARGS`…
TrinitroCat Oct 27, 2026
7afe50a
1. Fixed the bug in VASP plugin wrapper that VASP would periodically …
TrinitroCat Oct 27, 2026
e8b7dd7
1. Updated the version number to 1.0.1
TrinitroCat Oct 27, 2026
e4a5adf
1. Fixed several minor bugs.
TrinitroCat Oct 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Summary

<!-- Describe the change and why it is needed. -->

## Local validation

Remote CI only runs lightweight CPU regression and smoke checks. Please run the
relevant suites locally before opening the pull request.

- [ ] `python -m pytest` passes (GPU-only tests may skip on a CPU machine).
- [ ] With a GPU available: `buctoolkit --test fast` runs to completion.
- [ ] Reviewed the printed numerical diagnostics from the suites I ran; a green
`fast`/`main` run does not mean every printed deviation passed.
- [ ] For strict scientific changes or releases: `buctoolkit --test main` runs
to completion and its printed diagnostics were reviewed.
- [ ] New or changed behavior has a focused regression test.
- [ ] No unrelated worktree files or generated artifacts are included.

If no GPU was available, list which GPU/Triton tests could not be run.

See `DEVELOPMENT.md` section 13 for the exact commands and optional extras.
147 changes: 147 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: CI

on:
push:
branches:
- main
- 'dev-*'
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CUDA_VISIBLE_DEVICES: ""
PYTHONUNBUFFERED: "1"

jobs:
static:
name: static checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Compile Python sources
run: python -m compileall -q BUCToolkit testsuite

- name: Fetch pull-request base
if: github.event_name == 'pull_request'
run: git fetch --no-tags origin "${{ github.base_ref }}"

- name: Check pull-request whitespace
if: github.event_name == 'pull_request'
run: git diff --check "origin/${{ github.base_ref }}...HEAD"

test:
name: test py${{ matrix.python-version }} torch${{ matrix.torch }}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.12'
torch: '2.5.1'
- python-version: '3.12'
torch: 'latest'
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml

- name: Install CPU PyTorch
run: |
python -m pip install --upgrade pip
if [ "${{ matrix.torch }}" = "latest" ]; then
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
else
python -m pip install "torch==${{ matrix.torch }}" --index-url https://download.pytorch.org/whl/cpu
fi

- name: Install package and test dependencies
run: python -m pip install -e ".[test]"

- name: Check installed dependencies
run: python -m pip check

- name: Regression tests
run: python -m pytest -q --junitxml=reports/pytest.xml

- name: CPU smoke tests
working-directory: testsuite
run: |
python -m unittest \
fast_test.FastTest.test_IO \
fast_test.FastTest.test_APIS \
fast_test.FastTest.test_VIB -v

- name: Import and CLI smoke
run: |
python -c "import BUCToolkit; from BUCToolkit._version import __version__; print(__version__)"
buctoolkit --help > /dev/null

- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-report-py${{ matrix.python-version }}-torch${{ matrix.torch }}
path: reports/pytest.xml
if-no-files-found: ignore

build:
name: build distributions
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
cache-dependency-path: pyproject.toml

- name: Build distributions
run: |
python -m pip install --upgrade pip build twine
python -m build
python -m twine check dist/*

- name: Install wheel in a clean environment
run: |
python -m venv /tmp/wheel-smoke
/tmp/wheel-smoke/bin/python -m pip install --upgrade pip
/tmp/wheel-smoke/bin/python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
/tmp/wheel-smoke/bin/python -m pip install dist/*.whl
/tmp/wheel-smoke/bin/python -c "import BUCToolkit; from BUCToolkit._version import __version__; print(__version__)"
/tmp/wheel-smoke/bin/buctoolkit --help > /dev/null

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: distributions
path: dist/*
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
__pycache__/
*.py[cod]
.pytest_cache/
.coverage
.coverage.*
coverage.xml
coverage_html_report/
htmlcov/
reports/
build/
dist/
*.egg-info/
.venv/
.ci-venv/
output/
profiles/
plots/
testsuite/testsuite.log
*.swp
Loading
Loading