Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
dd58f14
CI: narrow memo digests to real sibling inputs, cache the sdist-insta…
amasat01 Nov 6, 2026
98e5b2d
CI: the release version comes from CHANGELOG.md's top heading, the la…
amasat01 Nov 6, 2026
0315515
Banded FP64 emulation for GPUs with weak or no FP64, device-only
amasat01 Nov 6, 2026
d53968c
Lint: drop an unused import in the exp table generator
amasat01 Nov 6, 2026
c113f04
CI: the sdist-install job has no checkout, so no pip cache
amasat01 Nov 6, 2026
86f1545
Banded inverse trig: one-float sector tangent with matched atan phi, …
amasat01 Nov 6, 2026
390667b
Assign: chunk the unroll fold so clang's 256-operand fold limit is no…
amasat01 Nov 7, 2026
27bf5df
Add Best practices to the install page: keep aether-dsc at the family…
amasat01 Nov 7, 2026
86714b0
Changelog: the 0.7.5 notes under Unreleased
amasat01 Nov 9, 2026
5c08000
Chunk: fall back to cudaMalloc on GPUs without memory pools; refuse u…
amasat01 Nov 9, 2026
6bdb82e
Driver runtime: map cudaDeviceGetAttribute, which the no-pool check c…
amasat01 Nov 9, 2026
5579f2e
Host vector math: pow vector variants for GCC on aarch64
amasat01 Nov 9, 2026
1b0b25b
Tests: aarch64 GCC pow route, vectorised and exact
amasat01 Nov 9, 2026
69a7756
Tests: band references build on aarch64, where long double is the 113…
amasat01 Nov 9, 2026
e8fbcf4
Tests: faithful-rounding gate for the aarch64 pow route
amasat01 Nov 9, 2026
1379588
Tests: link the C++ suite and the faithful gate on aarch64
amasat01 Nov 9, 2026
4576c1e
Tests: aarch64 pow gate covers a trip-shaped loop under the kernel flags
amasat01 Nov 9, 2026
6499ce1
Tests: the batched-for tail check applies only where packets are wide…
amasat01 Nov 10, 2026
8475c95
Build: faithful-gate generates and checks only the pow corpus on aarch64
amasat01 Nov 10, 2026
71f93eb
Tests: brace the batched-for tail check, which GCC flags as a danglin…
amasat01 Nov 10, 2026
1613993
Tests: off x86-64 the packet-math suite keeps its names and reports t…
amasat01 Nov 10, 2026
c1b79bd
Build: pass the OpenMP flags as separate arguments and add libomp's i…
amasat01 Nov 10, 2026
fa44a11
Banded: keep the C++23 denorm-style deprecation out of builds with li…
amasat01 Nov 10, 2026
af65495
Tests: mark the probe scalar's equality operator as possibly unused
amasat01 Nov 10, 2026
c74ba98
Tests: read the gtest summary with POSIX sed, so the gate runs where …
amasat01 Nov 10, 2026
c2ed7f2
Tests: skip the checks whose reference needs a long double wider than…
amasat01 Nov 10, 2026
a8bfefa
Changelog: the aarch64 pow route, the aarch64 and macOS test suite, a…
amasat01 Nov 10, 2026
ca17adf
Release 0.7.5: the changelog heading takes the date and the family pi…
amasat01 Nov 10, 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
11 changes: 5 additions & 6 deletions .github/actions/companion/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ runs:
path: ${{ inputs.path }}
token: ${{ inputs.token }}
fetch-depth: 0
# The companion's open pull request releases a version no tag has yet: tag the checkout with it, so floors on that version hold at PR time.
# The companion's open pull request heads its CHANGELOG.md with a version no tag has yet: tag the checkout with it, so floors on that version hold at PR time.
- shell: bash
env:
COMPANION_REPO: ${{ inputs.repo }}
COMPANION_REF: ${{ steps.ref.outputs.ref }}
COMPANION_PATH: ${{ inputs.path }}
GH_TOKEN: ${{ inputs.token }}
run: |
[ -f "$COMPANION_PATH/tools/next_version.py" ] || exit 0
labels=$(gh api "repos/amasat01/${COMPANION_REPO}/pulls?state=open&head=amasat01:${COMPANION_REF}" --jq '.[0].labels[].name' 2>/dev/null | tr '\n' ' ' || true)
grep -q 'release:' <<< "$labels" || exit 0
v=$(cd "$COMPANION_PATH" && python3 tools/next_version.py "$labels")
v=$(cd "$COMPANION_PATH" && python3 tools/next_version.py 2>/dev/null || true)
[ -z "$v" ] || { git -C "$COMPANION_PATH" tag "v$v" && echo "companion ${COMPANION_REPO} tagged v$v"; }
# the same version as a pretend version for the companion's package, so a build that cannot see the tag (an sdist, an isolated copy) still gives X.Y.Z
case "$COMPANION_REPO" in raptor) dist=RAPTOR_CORE ;; aether) dist=AETHER_DSC ;; eagle) dist=RAPTOR_EAGLE ;; hawk) dist=RAPTOR_HAWK ;; *) dist= ;; esac
[ -z "$v" ] || [ -z "$dist" ] || echo "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_$dist=$v" >> "$GITHUB_ENV"
25 changes: 5 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,14 @@ on:
schedule:
- cron: "23 4 * * 1" # weekly on main: every remembered pass runs again
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
types: [opened, synchronize, reopened]
workflow_dispatch: {}

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

jobs:
release-gate:
# The release label, the diff, the PR body and the tag it would create agree (tools/release_gate.sh). Skipped on other PRs.
if: github.event_name == 'pull_request' && github.base_ref == 'main'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- env:
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
PR_BODY: ${{ github.event.pull_request.body }}
run: bash tools/release_gate.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
test-cpp:
runs-on: ubuntu-24.04
strategy:
Expand Down Expand Up @@ -76,7 +61,7 @@ jobs:
with:
name: ci-test-cpp
args: >-
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree raptor --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip .github/ --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --tag . --file .github/workflows/ci.yml
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree raptor --skip docs/ --skip tests/ --skip ci/ --skip tools/ --skip goldens/ --skip RELEASING.md --skip CHANGELOG.md --skip README.md --skip CONTRIBUTING.md --skip CITATION.cff --skip Makefile --skip .github/ --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --file .github/workflows/ci.yml
extra: ${{ toJSON(matrix) }}
- run: make gate-names RAPTOR_SRC=raptor
if: steps.memo.outputs.run == 'true'
Expand Down Expand Up @@ -127,7 +112,7 @@ jobs:
# the job succeeds without building.
- id: memo
run: |
digest=$(.github/ci_digest.sh --tree . --skip docs/ --skip .github/ --tag . --file .github/workflows/ci.yml --str "${ImageVersion:-}" --str "$(g++-13 --version 2>/dev/null | head -1 || true)") || exit 1
digest=$(.github/ci_digest.sh --tree . --skip docs/ --skip .github/ --file .github/workflows/ci.yml --str "${ImageVersion:-}" --str "$(g++-13 --version 2>/dev/null | head -1 || true)") || exit 1
[ -n "$digest" ] || { echo "::error::empty digest"; exit 1; }
echo "digest=$digest" >> "$GITHUB_OUTPUT"
- id: pass
Expand Down Expand Up @@ -197,7 +182,7 @@ jobs:
with:
name: ci-clang-plugins
args: >-
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --tag . --file .github/workflows/ci.yml
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --file .github/workflows/ci.yml
- uses: actions/cache@v6
with:
path: ${{ github.workspace }}/.ccache
Expand Down Expand Up @@ -240,7 +225,7 @@ jobs:
with:
name: ci-host-gcc
args: >-
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --tag . --file .github/workflows/ci.yml
--tree . --skip docs/ --skip README.md --skip CHANGELOG.md --skip CONTRIBUTING.md --skip CITATION.cff --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --file .github/workflows/ci.yml
extra: ${{ toJSON(matrix) }}
- run: sudo apt-get update && sudo apt-get install -y g++-${{ matrix.gcc }}
if: steps.memo.outputs.run == 'true'
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2026 Alessandro Masat
# SPDX-License-Identifier: Apache-2.0
#
# The only workflow that reacts to labels (and to the PR body, which holds the release notes): the label, the diff, the
# PR body and the version in CHANGELOG.md's top heading agree (tools/release_gate.sh). Skipped on other PRs.

name: Release gate

on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled, edited]

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

permissions:
contents: read

jobs:
release-gate:
if: github.base_ref == 'main'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- env:
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
PR_BODY: ${{ github.event.pull_request.body }}
run: bash tools/release_gate.sh "${{ github.event.pull_request.base.sha }}" "${{ github.event.pull_request.head.sha }}"
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:
- cron: "23 4 * * 1" # weekly on main: every remembered pass runs again
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled, unlabeled]
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -139,12 +139,10 @@ jobs:
path: aether/dsc/aether_dsc/_payload

# package-dir is aether/dsc, below the git root: the version is computed here and handed in
- name: The version this checkout's label gives
- name: The version this checkout's CHANGELOG.md heading gives
working-directory: aether
env:
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
run: |
v=$(python tools/next_version.py "$PR_LABELS" 2>/dev/null || true)
v=$(python tools/next_version.py 2>/dev/null || true)
[ -n "$v" ] || v="0.0.0.dev0+g$(git rev-parse --short HEAD)"
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$v" >> "$GITHUB_ENV"
echo "CIBW_ENVIRONMENT_PASS_LINUX=SETUPTOOLS_SCM_PRETEND_VERSION" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -243,12 +241,10 @@ jobs:
cache: pip
cache-dependency-path: aether/dsc/pyproject.toml

- name: Tag this checkout with the version its label gives
- name: Tag this checkout with the version CHANGELOG.md's top heading gives
working-directory: aether
env:
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
run: |
v=$(python tools/next_version.py "$PR_LABELS" 2>/dev/null || true) # no label or release:none: build untagged (the gate reports a missing label)
v=$(python tools/next_version.py 2>/dev/null || true) # `## Unreleased` heading: build untagged
# untagged, the sdist takes the wheels' version: a higher one would win `--find-links dist` over every wheel
[ -n "$v" ] && git tag "v$v" || echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0.dev0+g$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"

Expand Down Expand Up @@ -378,7 +374,7 @@ jobs:
with:
name: release-test-wheel
args: >-
--tree . --skip docs/ --skip CHANGELOG.md --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --tag . --file .github/workflows/release.yml
--tree . --skip docs/ --skip CHANGELOG.md --skip .github/ --skip-ext .ipynb --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --file .github/workflows/release.yml
extra: ${{ toJSON(matrix) }}
- uses: actions/download-artifact@v8
with:
Expand Down Expand Up @@ -480,11 +476,9 @@ jobs:
cache: pip
cache-dependency-path: docs/requirements.txt

- name: Tag this checkout with the version its label gives
env:
PR_LABELS: ${{ join(github.event.pull_request.labels.*.name, ' ') }}
- name: Tag this checkout with the version CHANGELOG.md's top heading gives
run: |
v=$(python tools/next_version.py "$PR_LABELS" 2>/dev/null || true) # no label or release:none: build untagged (the gate reports a missing label)
v=$(python tools/next_version.py 2>/dev/null || true) # `## Unreleased` heading: build untagged
[ -z "$v" ] || git tag "v$v"

# companion site (amasat01.github.io): the ref pinned in .github/companions, else a same-named branch, else main
Expand Down Expand Up @@ -540,7 +534,7 @@ jobs:
with:
name: release-nbverify
args: >-
--tree . --skip CHANGELOG.md --skip .github/ --tree site --skip CHANGELOG.md --skip .github/ --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --tag . --file .github/workflows/release.yml
--tree . --skip CHANGELOG.md --skip .github/ --tree site --skip tests/ --skip CONTRIBUTING.md --skip README.md --skip CHANGELOG.md --skip .github/ --tree . --only .github/actions/ --only .github/ci_digest.sh --only .github/cuda_redist.sh --only .github/companions --file .github/workflows/release.yml

- run: python3 -m pip install -r docs/requirements.txt
if: steps.memo.outputs.run == 'true'
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#
# A merge to main whose pull request carries a release label gets the annotated tag vX.Y.Z on the merged commit
# (X.Y.Z from tools/next_version.py), then publish.yml is started on that tag. (A tag pushed with GITHUB_TOKEN
# (X.Y.Z from the top heading of CHANGELOG.md, which the label must agree with), then publish.yml is started on that tag. (A tag pushed with GITHUB_TOKEN
# starts no workflow, hence the dispatch.) release:none (docs-only) tags nothing.

name: Tag
Expand Down Expand Up @@ -36,17 +36,21 @@ jobs:
run: |
set -euo pipefail
labels=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/pulls" --jq '.[0].labels[].name' | tr '\n' ' ')
grep -q 'release:' <<< "$labels" || { echo "no release: label on the merged pull request: nothing to tag"; exit 0; }
V=$(python tools/next_version.py "$labels" "$GITHUB_SHA")
[ -n "$V" ] || { echo "release:none: nothing to tag"; exit 0; }
V=$(python tools/next_version.py)
if [ -z "$V" ]; then
grep -qE 'release:(patch|minor|major|rc|[0-9])' <<< "$labels" && { echo "::error::a release label, but CHANGELOG.md is not headed with a new version"; exit 1; }
echo "no release heading: nothing to tag"; exit 0
fi
L=$(python tools/next_version.py "$labels")
[ "$L" = "$V" ] || { echo "::error::CHANGELOG.md is headed $V, the label gives '${L:-nothing}': not publishing"; exit 1; }
if [ -n "$(git ls-remote --tags origin "refs/tags/v$V")" ]; then
echo "::error::tag v$V already exists"
exit 1
fi
# The build ran under the label of that moment: a relabel afterwards would tag a version the artifact does not carry.
# The artifact must carry the version being tagged.
bash tools/ci_fetch_artifact.sh dist "$(git rev-parse 'HEAD^{tree}')" dist
built=$(basename dist/*.tar.gz .tar.gz); built=${built##*-}
[ "$built" = "$V" ] || { echo "::error::relabelled after the last build (built $built, label gives $V): push an empty commit"; exit 1; }
[ "$built" = "$V" ] || { echo "::error::the artifact is version $built, the heading gives $V"; exit 1; }
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a "v$V" -m "v$V" "$GITHUB_SHA"
Expand Down
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

Releases after 0.2.7 are on [GitHub](https://github.com/amasat01/aether/releases): the notes are the pull request body.

## 0.7.5 (2026-11-10)

This section covers what changes from 0.7.3. `aether-dsc` moves with the C++ version. The public API is unchanged; the banded mode (double precision on GPUs with weak or no FP64) grows.

### Added

- **More banded functions:** `tan`, `exp2`, `expm1`, `log2`, `log10`, `log1p`, `sinh`, `cosh`, `tanh`, `asinh`, `acosh` and `atanh`, each with a stated per-op ULP bound and a golden corpus behind it.
- **Banded expression chains.** `a * b + c` on banded values keeps the result unrestored between ops and normalises only where a consumer reads the parts in order (a division, a root, a comparison, a store). Where an op would need a normalised value and has none, the overload is deleted and the error names the fix.
- Banded headers compile under NVRTC, and `aether-dsc` ships them in its payload.
- The install page has a Best practices section: keep `aether-dsc` at the family release.
- **`pow` vectorises on aarch64 with GCC.** Under `AETHER_HOST_VECTOR_MATH`, `aether::math::pow` has the aarch64 vector variants GCC asks for, faithfully rounded (error < 1 ULP) and checked by `make faithful-gate`, which now runs on aarch64. Every other function stays libm's there, and clang keeps libm.
- The C++ test suite builds and runs on aarch64, Linux and macOS: the x86-only packet-math tests report skipped there, and so do the few whose reference needs a `long double` wider than `double` (Apple arm64).

### Changed

- **Banded storage handles values outside the cell's range by label.** A magnitude at or above 2^126 is stored as signed infinity, one below 2^-94 as signed zero, and infinities and NaN keep their own words; it is one range test and a select, with no branch.
- Banded inverse trigonometry is tighter: a one-float sector tangent with a matched `atan` phase, exact `1 - |x|` in `asin` and `acos`.
- CI takes the release version from the top heading of `CHANGELOG.md`; the label is only checked against it. Memo digests are narrowed to real inputs, and the sdist-install job needs no pip cache.

### Fixed

- Banded headers build without warnings under C++23 with libc++ (Apple clang): the deprecated denorm style in the banded `numeric_limits` no longer warns.
- The build finds OpenMP under Apple clang with Homebrew's `libomp`: the OpenMP flags pass as separate arguments, and `libomp`'s headers are on the include path.
- Device allocation works on GPUs without memory pools (`cudaDevAttrMemoryPoolsSupported == 0`, common on virtualised GPUs): a stream-ordered `Chunk::allocate` falls back to plain `cudaMalloc` there, the chunk reports `streamOrdered() == false`, and allocating during a stream capture throws an error that names the missing pools.
- `Assign` with a long unrolled fold builds under clang: the fold is chunked so clang's 256-operand limit is not hit.

## 0.7.3 (2026-11-05)

This section covers what changes from 0.7.2. `aether-dsc` moves with the C++ version. The library's API is unchanged; this release is about how it is built and shipped.
Expand Down
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ endif()
# include OpenMP
find_package(OpenMP REQUIRED)
message(STATUS "> Found OpenMP")
# One flag string can hold several arguments (Apple clang: "-Xclang -fopenmp"): pass them as a list
separate_arguments(AETHER_OPENMP_CXX_FLAGS NATIVE_COMMAND "${OpenMP_CXX_FLAGS}")

# Compile/link flags for CUDA/C++
if(NOT DEFINED AETHER_MARCH)
Expand Down Expand Up @@ -172,7 +174,7 @@ if(NOT AETHER_CPP_MODE)
endif()

# C++ >= 23 is required (host side; device TUs are capped at C++20, see above)
list(APPEND AETHER_CXX_FLAGS ${AETHER_COMMON_FLAGS} ${OpenMP_CXX_FLAGS} -Wpedantic)
list(APPEND AETHER_CXX_FLAGS ${AETHER_COMMON_FLAGS} ${AETHER_OPENMP_CXX_FLAGS} -Wpedantic)

# Treat warnings as errors - for CI pipeline
if (AETHER_WARN_AS_ERR)
Expand Down Expand Up @@ -209,6 +211,10 @@ target_include_directories(${AETHER_LIB} INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_link_libraries(${AETHER_LIB} INTERFACE ${OpenMP_CXX_LIBRARIES})
# omp.h outside the compiler's own search path (a separately installed libomp)
if(OpenMP_CXX_INCLUDE_DIRS)
target_include_directories(${AETHER_LIB} SYSTEM INTERFACE "$<BUILD_INTERFACE:${OpenMP_CXX_INCLUDE_DIRS}>")
endif()
# Common options
target_compile_features(${AETHER_LIB} INTERFACE cxx_std_23)
target_compile_definitions(${AETHER_LIB} INTERFACE ${AETHER_DEFINES})
Expand Down
Loading
Loading