Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
cf39f1e
[SymForce] Update dependency pins
ankit-agarwal-skydio Jun 3, 2026
83e3355
[SymForce] Drop Python 3.9 support
ankit-agarwal-skydio Jun 4, 2026
89e440d
[SymForce-External] [Caspar] Minor fix: Export CASPAR_MIN_ARCH and fi…
tordnat Jun 12, 2026
ecf0ae5
skymarshal: Precompute recursive lcmtype hash at codegen time
jerry-skydio Jun 24, 2026
50d4abc
[SymForce] Update dependency pins
ankit-agarwal-skydio Jun 24, 2026
58c81d1
[SymForce] Update dependency pins
william-almy-skydio Jun 30, 2026
c56ea51
[SymForce] Update dependency pins
ankit-agarwal-skydio Jul 13, 2026
3cf3381
[SymForce] Bundle eigen_lcm .lcm sources into wheels
aaron-skydio Jul 18, 2026
9e3dad6
[SymForce] Update dependency pins
ankit-agarwal-skydio Jul 18, 2026
42326d1
[SymForce] Update dependency pins
ankit-agarwal-skydio Jul 22, 2026
b181d61
skymarshal: Initialize hash during decode
brian-kubisiak-skydio Jul 23, 2026
ec82c3c
[SymForce] Update dependency pins
ankit-agarwal-skydio Jul 27, 2026
9e23fdb
[SkyMarshal] Remove redundant python casts
aaron-skydio Aug 18, 2026
13e7235
[SymForce-External] Build manylinux aarch64 wheels
mrpollo Aug 19, 2026
398ba46
[ROCm] Merge upstream main into the AMD/HIP branch
jeffdaily Aug 20, 2026
1a9e977
[ROCm] Harden SumStore's shared scratch buffer reuse contract
jeffdaily Aug 20, 2026
5ddf38e
[SymForce] IWYU for fixed_size_optimizer
aaron-skydio Aug 21, 2026
6582930
[SymForce-External] Fix Rust codegen matrix return types
tandede Aug 26, 2026
763e1bc
[SymForce] Fix import cycle in camera_cal
aaron-skydio Sep 1, 2026
795c37c
[SymForce] Assign factor outputs through fixed-size Maps
brian-kubisiak-skydio Sep 3, 2026
dc2f7a3
[SkyMarshal] Support notations on struct members
aaron-skydio Sep 4, 2026
94f2452
[SkyMarshal] Add an #inline_capacity notation for noalloc targets
aaron-skydio Sep 5, 2026
7e362c4
[SymForce] Python Pose Graph Optimization Example
aaron-skydio Sep 10, 2026
7b01ab6
[SymForce] Upgrade pinned depenencies
Sep 10, 2026
4ee8e6f
[SymForce] Support new fmtlib
brian-kubisiak-skydio Sep 17, 2026
074af98
[SymForce] Update spdlog to 1.17.0
brian-kubisiak-skydio Sep 19, 2026
2246f8a
[SymForce] Update pinned dependencies
Sep 20, 2026
a768308
[Caspar] Zero initialize caspar kernel registers
aaron-skydio Sep 25, 2026
475065d
[Caspar] Stop generating unreferenced variables
aaron-skydio Sep 25, 2026
eb3d04a
[Caspar] Fix three defects in the solver loop
aaron-skydio Sep 25, 2026
ac55ed3
[SymForce] Fix some IWYU issues
aaron-skydio Sep 26, 2026
8084212
fmt_eigen: Disable fmt range formatting for all Eigen dense types
brian-kubisiak-skydio Sep 28, 2026
b99ebe6
eigen_lcm: Suppress false-positive -Wmaybe-uninitialized
brian-kubisiak-skydio Sep 28, 2026
820b62f
[SymForce] Assign additional factor outputs through fixed-size Maps
nikhil-marathe-skydio Sep 29, 2026
17c248a
[SymForce] Run the docs test in its own CI job
aaron-skydio Sep 29, 2026
626c3af
[Caspar] IWYU
aaron-skydio Sep 29, 2026
c93eb63
[SymForce] Initialize covariance_sums in imu_preintegration_test
brian-kubisiak-skydio Sep 29, 2026
8848a3f
[SymForce] Mark FetchContent fmt headers as system headers
aaron-skydio Sep 29, 2026
2bcd467
[SymForce] Upgrade to pybind11-stubgen 3.0.0
aaron-skydio Sep 29, 2026
6c14fc6
[SymForce] Some fixes for clang-tidy google-explicit-constructor
aaron-skydio Oct 3, 2026
b984495
[SymForce] Update pinned dependencies
Oct 4, 2026
ad058f3
skymarshal: 1 vector allocation per schema() call
Oct 8, 2026
bb8ba39
[SymForce] Clamp squared norm of residual to 0 to avoid numerical issues
veeresh-taranalli-skydio Oct 10, 2026
432a8d5
[SkyMarshal] Format LCM
jerry-skydio Oct 13, 2026
dc269a3
[Caspar] Check every generated kernel launch for errors
aaron-skydio Oct 13, 2026
7642702
[SymForce] Add block tri-diagonal solver
nathan-skydio Oct 14, 2026
dd53d3e
skymarshal: add --proto-package-prefix and --proto-flat-output
james-clarke-skydio Oct 14, 2026
8d648a4
[SkyMarshal] Some changes for clang-tidy include-cleaner
ankit-agarwal-skydio Oct 19, 2026
78e380a
[Caspar] Use dynamic shared memory in generated kernels
aaron-skydio Oct 23, 2026
abb954b
[Caspar] Fix the block-tridiagonal preconditioner for several types a…
aaron-skydio Oct 23, 2026
37c2815
[Caspar] Generate pi, floor and the other backend test functions
aaron-skydio Oct 23, 2026
1aab109
[Caspar] Type the generated ExitReason members as ExitReason
aaron-skydio Oct 23, 2026
16baf60
[SymForce] Integrate IMU preintegration step noise exactly
aaron-skydio Oct 24, 2026
c2c0632
[SkyMarshal] Support for precompiling Python LCM Types
philipp-foehn-skydio Oct 26, 2026
6734d0c
[SymForce] Update pinned dependencies
david-taylor-skydio Oct 27, 2026
f54828d
skymarshal: Emit constexpr enum operators and struct constructors
jerry-skydio Oct 27, 2026
c693256
[SymForce] Update pinned dependencies
ankit-agarwal-skydio Oct 27, 2026
db5c9f3
[SymForce] Update pinned dependencies
ankit-agarwal-skydio Oct 28, 2026
acdedd0
[SymForce] Make caspar expected values SymPy-version independent
aaron-skydio Oct 29, 2026
ce4f253
[ROCm] Merge upstream main into the AMD/HIP branch
jeffdaily Nov 4, 2026
38f16ea
[ROCm] Map the CUDA calls used by the generated kernel launches
jeffdaily Nov 4, 2026
1a984fc
[ROCm] Drop the trailing SumStore barrier
jeffdaily Nov 4, 2026
5256d2a
[ROCm] Regenerate the Caspar codegen test data for the HIP header
jeffdaily Nov 4, 2026
daa1a7b
[ROCm] Zero r_kp1_norm2 before the first PCG residual update
jeffdaily Nov 4, 2026
9ef7a6a
[ROCm] Build the Caspar GPU tests with HIP when CUDA is absent
jeffdaily Nov 4, 2026
92ec546
[ROCm] Check the generated Caspar build files in the codegen test
jeffdaily Nov 4, 2026
1ee93b2
[ROCm] Keep device-only CUDA headers out of host compiles
jeffdaily Nov 4, 2026
d5eb335
[ROCm] Apply clang-format to cuda_to_hip.h
jeffdaily Nov 4, 2026
f82e4ab
[ROCm] Remove unused reduction helpers from cuda_to_hip.h
jeffdaily Nov 4, 2026
e7e0b00
[ROCm] Fix the Caspar README HIP example and a stale comment
jeffdaily Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 11 additions & 6 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- deploy_target: 14.0
runner: macos-14
arch: arm64
python-version: [cp39, cp310, cp311, cp312, cp313, cp314]
python-version: [cp310, cp311, cp312, cp313, cp314]

steps:
- name: Checkout
Expand Down Expand Up @@ -84,12 +84,16 @@ jobs:

build-linux:
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os.runner }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [cp39, cp310, cp311, cp312, cp313, cp314]
os:
- runner: ubuntu-latest
arch: x86_64
- runner: ubuntu-24.04-arm
arch: aarch64
python-version: [cp310, cp311, cp312, cp313, cp314]

steps:
- name: Checkout
Expand All @@ -105,7 +109,8 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v3.4.1
env:
CIBW_BUILD: ${{ matrix.python-version }}-manylinux_x86_64
CIBW_BUILD: ${{ matrix.python-version }}-manylinux_${{ matrix.os.arch }}
CIBW_ARCHS_LINUX: ${{ matrix.os.arch }}
CIBW_BEFORE_BUILD: yum install -y gmp-devel git
CIBW_ENVIRONMENT: SYMFORCE_REWRITE_LOCAL_DEPENDENCIES=$SYMFORCE_VERSION SYMFORCE_PYTHON_OVERRIDE=python
CIBW_ENVIRONMENT_PASS_LINUX: SYMFORCE_VERSION
Expand All @@ -121,7 +126,7 @@ jobs:
- name: Upload Wheels
uses: actions/upload-artifact@v7
with:
name: symforce-wheels-${{ matrix.os }}-${{ matrix.python-version }}
name: symforce-wheels-linux-${{ matrix.os.arch }}-${{ matrix.python-version }}
path: wheelhouse/*.whl

merge-wheel-artifacts:
Expand Down
59 changes: 51 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-24.04]
python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
compiler:
# Newest gcc on 24.04
- C: gcc-14
Expand All @@ -29,7 +29,7 @@ jobs:
include:
# gcc 9 (Oldest gcc available on Ubuntu 22.04)
- os: ubuntu-22.04
python: "3.9"
python: "3.10"
compiler:
C: gcc-9
CXX: g++-9
Expand All @@ -45,7 +45,7 @@ jobs:
warning_options: "-Wall;-Wextra;-Wno-dangling-reference;-Wno-array-bounds;-Werror;-DSYM_VALUES_DISALLOW_FROM_STORAGE_NON_EIGEN_TYPES"
# Clang 11 (Oldest clang available on Ubuntu 22.04)
- os: ubuntu-22.04
python: "3.9"
python: "3.10"
compiler:
C: clang-11
CXX: clang++-11
Expand Down Expand Up @@ -138,22 +138,65 @@ jobs:
cmake --build build -j $(nproc)

# lcmtypes and symforce need to be available for tests
# The docs test is slow, so it only runs in the docs job below
- name: Run tests
run: |
pip install build/lcmtypes/python2.7
export PYTHONPATH=$PYTHONPATH:$(pwd)
EXIT_CODE=0
ctest --test-dir build -j $(nproc) || EXIT_CODE=$?
EXCLUDE='^symengine_symforce_docs_test$'
ctest --test-dir build -j $(nproc) -E "$EXCLUDE" || EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
ctest --test-dir build -j $(nproc) --rerun-failed --output-on-failure
ctest --test-dir build -j $(nproc) -E "$EXCLUDE" --rerun-failed --output-on-failure
fi

docs:
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
doxygen \
libgmp-dev \
pandoc

- uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Install python dependencies
run: |
PY_MINOR_VERSION=$(python -c "import sys; print(sys.version_info.minor)")
python -m pip install pip==25.0.1 setuptools==75.3.2
python -m pip install -r requirements/dev_py3${PY_MINOR_VERSION}.txt

- name: Run cmake build
run: |
cmake -B build \
-D SYMFORCE_PYTHON_OVERRIDE=python3.12 \
-D SYMFORCE_BUILD_EXAMPLES=OFF \
-D SYMFORCE_BUILD_TESTS=OFF \
-D SYMFORCE_BUILD_BENCHMARKS=OFF
cmake --build build -j $(nproc)

# Runs `make docs`, with retries for flakiness
- name: Build docs
run: |
pip install build/lcmtypes/python2.7
export PYTHONPATH=$PYTHONPATH:$(pwd)
SYMFORCE_SYMBOLIC_API=symengine python test/symforce_docs_test.py

# Upload the docs as an artifact
# To view, download the `docs` artifact from the build and matrix entry you're interested in
# (probably any is good, assuming they all pass)
# To view, download the `docs` artifact from the build
# Unzip to a directory and run `npx http-server` in that directory
- name: Upload Generated Docs
uses: actions/upload-artifact@v7
with:
name: docs ${{ matrix.os }}-python${{ matrix.python }}-${{ matrix.compiler.C }}
name: docs
path: build/docs
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-python@v6
with:
python-version: "3.9"
python-version: "3.10"

- name: Install python dependencies
run: |
Expand Down
36 changes: 35 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ----------------------------------------------------------------------------

# NOTE(aaron): This will use NEW policies up to CMake 4.0; this should
# be the maximum tested CMake version, matching requirements/dev_py39.txt
# be the maximum tested CMake version, matching requirements/dev_py310.txt
cmake_minimum_required(VERSION 3.19...4.0)

project(symforce)
Expand All @@ -27,6 +27,10 @@ option(SYMFORCE_ADD_PYTHON_TESTS "Include the Python tests" ON)
option(SYMFORCE_BUILD_SYMENGINE "Build symengine[py]" ON)
option(SYMFORCE_GENERATE_MANIFEST "Generate build manifest" ON)
option(SYMFORCE_BUILD_BENCHMARKS "Generate examples for alternative libraries" OFF)
option(SYMFORCE_GEN_USE_FMTLIB
"Declare fmt::formatter specializations in symforce_gen (requires fmtlib)"
ON
)

# ------------------------------------------------------------------------------
# TicTocs
Expand Down Expand Up @@ -197,6 +201,31 @@ if(SYMFORCE_BUILD_BENCHMARKS OR SYMFORCE_BUILD_TESTS)
endif()
endif()

# ------------------------------------------------------------------------------
# fmtlib

find_package(fmt 12...<13 QUIET)
if (NOT fmt_FOUND)
message(STATUS "fmt not found, adding with FetchContent")
function(add_fmt)
set(FMT_INSTALL ON CACHE INTERNAL "fmt should create an install target")
# Mark fmt headers as system headers so warnings in them don't break -Werror builds, e.g.
# clang's -Wnan-infinity-disabled under -ffast-math
set(FMT_SYSTEM_HEADERS ON CACHE INTERNAL "fmt headers should be marked as system headers")
FetchContent_Declare(
fmtlib
URL https://github.com/fmtlib/fmt/archive/12.2.0.zip
URL_HASH SHA256=8bc0dfbeccc1ba96dc9c0f9bf0bbc95f3c7a35308122618638c5755f389e5e72
)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
FetchContent_MakeAvailable(fmtlib)
endfunction()

add_fmt()
else()
message(STATUS "fmt found: ${fmt_VERSION}")
endif()

# ==============================================================================
# SymForce Targets
# ==============================================================================
Expand All @@ -211,6 +240,7 @@ else()
add_skymarshal_bindings(symforce_lcmtypes
${CMAKE_CURRENT_BINARY_DIR}/lcmtypes
${CMAKE_CURRENT_SOURCE_DIR}/lcmtypes
DEP_LCMTYPES_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/eigen_lcm/lcmtypes
)

target_include_directories(symforce_lcmtypes_cpp
Expand Down Expand Up @@ -270,6 +300,10 @@ target_compile_options(symforce_gen PRIVATE ${SYMFORCE_COMPILE_OPTIONS})
if(NOT SYMFORCE_NO_FAST_MATH)
target_compile_options(symforce_gen PRIVATE -ffast-math)
endif()
if(SYMFORCE_GEN_USE_FMTLIB)
target_compile_definitions(symforce_gen PUBLIC SYMFORCE_GEN_USE_FMTLIB)
target_link_libraries(symforce_gen fmt::fmt)
endif()
target_link_libraries(symforce_gen ${SYMFORCE_EIGEN_TARGET} symforce_lcmtypes_cpp)
target_include_directories(
symforce_gen
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a href="https://symforce.org"><img alt="Documentation" src="https://img.shields.io/badge/api-docs-blue" /></a>
<a href="https://github.com/symforce-org/symforce"><img alt="Source Code" src="https://img.shields.io/badge/source-code-blue" /></a>
<a href="https://github.com/symforce-org/symforce/issues"><img alt="Issues" src="https://img.shields.io/badge/issue-tracker-blue" /></a>
<img alt="Python 3.9 | 3.10 | 3.11 | 3.12" src="https://img.shields.io/pypi/pyversions/symforce" />
<img alt="Python 3.10 | 3.11 | 3.12" src="https://img.shields.io/pypi/pyversions/symforce" />
<img alt="C++17" src="https://img.shields.io/badge/c++-17-blue" />
<a href="https://pypi.org/project/symforce/"><img alt="PyPI" src="https://img.shields.io/pypi/v/symforce" /></a>
<a href="https://github.com/symforce-org/symforce/tree/main/LICENSE"><img alt="Apache License" src="https://img.shields.io/pypi/l/symforce" /></a>
Expand Down Expand Up @@ -540,7 +540,7 @@ To learn more, visit the SymForce tutorials [here](https://symforce.org/#guides)

For best results, you should build from the [latest tagged release](https://github.com/symforce-org/symforce/releases/latest). You can also build from `main`, or from another branch, but everything is less guaranteed to work.

SymForce requires Python 3.9 or later. The build is currently tested on Linux and macOS, SymForce on Windows is untested (see [#145](https://github.com/symforce-org/symforce/issues/145)). We strongly suggest creating a virtual python environment.
SymForce requires Python 3.10 or later. The build is currently tested on Linux and macOS, SymForce on Windows is untested (see [#145](https://github.com/symforce-org/symforce/issues/145)). We strongly suggest creating a virtual python environment.

Install the `gmp` package with one of:
```bash
Expand Down
27 changes: 27 additions & 0 deletions cmake/patch_spdlog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# ----------------------------------------------------------------------------
# SymForce - Copyright 2022, Skydio, Inc.
# This source code is under the Apache 2.0 license found in the LICENSE file.
# ----------------------------------------------------------------------------

set -eu

spdlog_src="$1"
shift

# FetchContent re-runs the patch step on trees that may already be patched. The series overlaps
# itself, so a per-patch check can't tell "already applied" from "does not apply"; stamp the whole
# series instead.
stamp="${spdlog_src}/.symforce_patches_applied"
series="$(cat "$@" | sha256sum | cut -d' ' -f1)"

if [ -f "${stamp}" ] && [ "$(cat "${stamp}")" = "${series}" ]; then
exit 0
fi

for patch_file in "$@"; do
patch -p1 -d "${spdlog_src}" -i "${patch_file}"
done

echo "${series}" > "${stamp}"
Loading