Skip to content

Commit dca8068

Browse files
tvogelsjhrmnnJensWehner
authored
Timing benchmark (#121)
Pipeline for running benchmarks, excluding internal amlt submission code JSON files with reference data that we have run ourselves. Documentation for running your own measurements and comparing them to our results. CI for deploying the benchmark along with the Sphinx docs. Co-authored-by: Jan Hermann <dev@hrmnn.net> Co-authored-by: Thijs Vogels <840825+tvogels@users.noreply.github.com> Co-authored-by: Jens Wehner <12139113+JensWehner@users.noreply.github.com>
1 parent 0e5a2f8 commit dca8068

64 files changed

Lines changed: 18378 additions & 47 deletions

Some content is hidden

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

‎.gitattributes‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
benchmarks/reference/measurements.json filter=lfs diff=lfs merge=lfs -text

‎.github/workflows/docs.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
lfs: true
2325

2426
- name: Print CPU diagnostics
2527
uses: ./.github/actions/cpu-diagnostics
@@ -53,7 +55,8 @@ jobs:
5355

5456
- name: Check external links
5557
run: |
56-
sphinx-build -b linkcheck docs docs/_build/linkcheck
58+
# The HTML build above executes notebooks; linkcheck only needs their links.
59+
sphinx-build -D nb_execution_mode=off -b linkcheck docs docs/_build/linkcheck
5760
shell: micromamba-shell {0}
5861

5962
- name: Upload Pages artifact

‎.github/workflows/pypi/microsoft-skala.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ readme = "README.md"
1212
keywords = []
1313
classifiers = [
1414
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
1518
"Development Status :: 5 - Production/Stable",
1619
]
17-
requires-python = ">=3.10"
20+
requires-python = ">=3.11,<3.14"
1821
dependencies = [
1922
"skala==@VERSION@",
2023
]

‎.github/workflows/pypi/skala-cuda.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ readme = "README.md"
1212
keywords = []
1313
classifiers = [
1414
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
1518
"Development Status :: 5 - Production/Stable",
1619
]
17-
requires-python = ">=3.10"
20+
requires-python = ">=3.11,<3.14"
1821
dependencies = [
1922
"skala==@VERSION@",
2023
"gpu4pyscf-cuda@CUDA@ >=1.8,<1.9",

‎.github/workflows/test.yml‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
runner: [ubuntu-latest]
50-
python-version: ["3.10", "3.11", "3.12", "3.13"]
51-
pyscf-version: ["2.9", "2.11"]
50+
python-version: ["3.11", "3.12", "3.13"]
51+
pyscf-version: ["2.11", "2.14"]
5252
include:
5353
- runner: ubuntu-24.04-arm
5454
python-version: "3.12"
@@ -60,6 +60,8 @@ jobs:
6060
name: "Python=${{ matrix.python-version }} & PySCF=${{ matrix.pyscf-version }} @ ${{ matrix.runner }}"
6161
steps:
6262
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
63+
with:
64+
lfs: true
6365

6466
- name: Print CPU diagnostics
6567
uses: ./.github/actions/cpu-diagnostics
@@ -74,7 +76,12 @@ jobs:
7476
cache-downloads: true
7577
create-args: >-
7678
python=${{ matrix.python-version }}
77-
pyscf=${{ matrix.pyscf-version }}
79+
80+
# Keep PySCF on PyPI: its wheels bundle XCFun instead of introducing Conda's
81+
# pybind11 ABI 4 requirement, which conflicts with PyTorch >=2.9's ABI 11.
82+
- name: Install matrix PySCF version
83+
run: python -m pip install "pyscf==${{ matrix.pyscf-version }}"
84+
shell: micromamba-shell {0}
7885

7986
- name: Install package in development mode
8087
run: |
@@ -165,7 +172,11 @@ jobs:
165172
cache-downloads: true
166173
create-args: >-
167174
python=3.12
168-
pyscf=2.13.1
175+
176+
# Keep PySCF on PyPI for the same XCFun/pybind11 ABI reason as the test matrix.
177+
- name: Install profiling PySCF version
178+
run: python -m pip install "pyscf==2.13.1"
179+
shell: micromamba-shell {0}
169180

170181
- name: Install package in development mode
171182
run: |
@@ -175,4 +186,3 @@ jobs:
175186
- name: Run profiling tests
176187
run: pytest -v -m profiling
177188
shell: micromamba-shell {0}
178-

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Skala is a neural network-based exchange-correlation (XC) functional for density
2020

2121
## Development environment
2222

23-
1. **Python version**: ≥3.10 (target 3.11 for tooling).
23+
1. **Python version**: 3.11–3.13 (target 3.11 for tooling).
2424
2. **Environment setup** (conda recommended):
2525
```bash
2626
mamba env create -f environment.yml

‎benchmarks/reference/README.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Benchmark reference data
2+
3+
These reference timing measurements generate the documentation report and support comparisons with
4+
other implementations and machines. `measurements.json` is managed by Git LFS; run `git lfs pull`
5+
if it is not populated in an existing checkout.
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
[
2+
{
3+
"blas_impl": "blas 3.9.0",
4+
"cores_logical": 32,
5+
"cores_physical": 16,
6+
"cpu_model": "Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz",
7+
"cuda_version": "12.9",
8+
"env_id": "d32v3-t16",
9+
"env_vars": {
10+
"OMP_NUM_THREADS": "16"
11+
},
12+
"gpu4pyscf_version": null,
13+
"gpu_count": 0,
14+
"gpu_models": [],
15+
"hostname": "18c90ce1d9bd4615825d8f3c208d1756000021",
16+
"interconnect": null,
17+
"label": "D32_v3 - 16 threads",
18+
"mem_total_gb": 125.8,
19+
"num_sockets": 1,
20+
"numa_nodes": 1,
21+
"numa_topology": "NUMA node(s): 1\nNUMA node0 CPU(s): 0-31",
22+
"numpy_version": "2.3.5",
23+
"pyscf_version": "2.10.0",
24+
"python_version": "3.11.15",
25+
"skala_version": "2026.8",
26+
"timestamp": "2026-08-17T09:16:14.027002+00:00",
27+
"torch_version": "2.9.1",
28+
"versions": {
29+
"ase": "3.29.0",
30+
"dftd3": "1.2.1",
31+
"pyarrow": "25.0.0",
32+
"skala": "2026.8"
33+
}
34+
},
35+
{
36+
"blas_impl": "blas 3.9.0",
37+
"cores_logical": 2,
38+
"cores_physical": 1,
39+
"cpu_model": "Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz",
40+
"cuda_version": "12.9",
41+
"env_id": "d2v3-t2",
42+
"env_vars": {
43+
"OMP_NUM_THREADS": "2"
44+
},
45+
"gpu4pyscf_version": null,
46+
"gpu_count": 0,
47+
"gpu_models": [],
48+
"hostname": "716bb4cdf5514a6ba71843203238ab3e00003X",
49+
"interconnect": null,
50+
"label": "D2_v3 - 2 threads",
51+
"mem_total_gb": 7.8,
52+
"num_sockets": 1,
53+
"numa_nodes": 1,
54+
"numa_topology": "NUMA node(s): 1\nNUMA node0 CPU(s): 0,1",
55+
"numpy_version": "2.3.5",
56+
"pyscf_version": "2.10.0",
57+
"python_version": "3.11.15",
58+
"skala_version": "2026.8",
59+
"timestamp": "2026-08-15T05:16:13.365629+00:00",
60+
"torch_version": "2.9.1",
61+
"versions": {
62+
"ase": "3.29.0",
63+
"dftd3": "1.2.1",
64+
"pyarrow": "25.0.0",
65+
"skala": "2026.8"
66+
}
67+
},
68+
{
69+
"blas_impl": "scipy-openblas 0.3.29",
70+
"cores_logical": 24,
71+
"cores_physical": 24,
72+
"cpu_model": "AMD EPYC 7V13 64-Core Processor",
73+
"cuda_version": "12.8",
74+
"env_id": "a100-ppe-s07-v181-cutensor-warmfree-preload-20260817",
75+
"env_vars": {
76+
"OMP_NUM_THREADS": "24"
77+
},
78+
"gpu4pyscf_version": null,
79+
"gpu_count": 1,
80+
"gpu_models": [
81+
"NVIDIA A100 80GB PCIe"
82+
],
83+
"hostname": "ab9c0b145292439180ac9e72068318d200000B",
84+
"interconnect": null,
85+
"label": "A100 GPU - GPU4PySCF 1.8.1 + cuTENSOR",
86+
"mem_total_gb": 216.3,
87+
"num_sockets": 1,
88+
"numa_nodes": 1,
89+
"numa_topology": "NUMA node(s): 1\nNUMA node0 CPU(s): 0-23",
90+
"numpy_version": "2.2.6",
91+
"pyscf_version": "2.10.0",
92+
"python_version": "3.11.15",
93+
"skala_version": "2026.8",
94+
"timestamp": "2026-08-17T07:23:56.834931+00:00",
95+
"torch_version": "2.9.1+cu128",
96+
"versions": {
97+
"ase": "3.29.0",
98+
"dftd3": "1.2.1",
99+
"pyarrow": "25.0.0",
100+
"skala": "2026.8"
101+
}
102+
}
103+
]

0 commit comments

Comments
 (0)