Skip to content

Commit 8a41ea1

Browse files
committed
Update to Boost.Math 1.89
1 parent 52ac4c6 commit 8a41ea1

File tree

520 files changed

+5060
-2611
lines changed

Some content is hidden

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

520 files changed

+5060
-2611
lines changed

third-party/boost-math/.drone.star

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def main(ctx):
5353
for cxx in gnu_9_stds:
5454
result.append(linux_cxx("Ubuntu g++-10 " + cxx + " " + suite, "g++-10", packages="g++-10", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-10', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
5555
result.append(linux_cxx("Ubuntu g++-11 " + cxx + " " + suite, "g++-11", packages="g++-11", buildtype="boost", image="cppalliance/droneubuntu2004:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-11', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
56+
result.append(linux_cxx("Ubuntu g++-12 " + cxx + " " + suite, "g++-12", packages="g++-12", buildtype="boost", image="cppalliance/droneubuntu2204:1", environment={'TOOLSET': 'gcc', 'COMPILER': 'g++-12', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
57+
result.append(linux_cxx("Ubuntu clang++-14 " + cxx + " " + suite, "clang++-14", packages="clang-14", llvm_os="jammy", llvm_ver="14", buildtype="boost", image="cppalliance/droneubuntu2204:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-14', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
58+
result.append(linux_cxx("Ubuntu clang++-15 " + cxx + " " + suite, "clang++-15", packages="clang-15", llvm_os="jammy", llvm_ver="15", buildtype="boost", image="cppalliance/droneubuntu2204:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-15', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
5659
for cxx in clang_10_stds:
5760
result.append(linux_cxx("Ubuntu clang++-10 " + cxx + " " + suite, "clang++-10", packages="clang-10", llvm_os="xenial", llvm_ver="10", buildtype="boost", image="cppalliance/droneubuntu1804:1", environment={'TOOLSET': 'clang', 'COMPILER': 'clang++-10', 'CXXSTD': cxx, 'TEST_SUITE': suite, }, globalenv=globalenv))
5861
for cxx in gnu_non_native:

third-party/boost-math/.github/workflows/ci.yml

Lines changed: 23 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -78,73 +78,13 @@ jobs:
7878
- name: Test
7979
run: ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER define=BOOST_MATH_RUN_MP_TESTS
8080
working-directory: ../boost-root/libs/math/test
81-
82-
ubuntu-jammy:
83-
runs-on: ubuntu-22.04
84-
strategy:
85-
fail-fast: false
86-
matrix:
87-
compiler: [ g++-12, clang++-14, clang++-15 ]
88-
standard: [ c++14, c++17 ]
89-
suite: [ github_ci_block_1, github_ci_block_2 ]
90-
steps:
91-
- uses: actions/checkout@v4
92-
with:
93-
fetch-depth: '0'
94-
- name: Set TOOLSET
95-
run: echo ${{ matrix.compiler }} | awk '/^g/ { print "TOOLSET=gcc" } /^clang/ { print "TOOLSET=clang" }' >> $GITHUB_ENV
96-
- name: Add repository
97-
continue-on-error: true
98-
id: addrepo
99-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
100-
- name: Retry Add Repo
101-
continue-on-error: true
102-
id: retry1
103-
if: steps.addrepo.outcome=='failure'
104-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
105-
- name: Retry Add Repo 2
106-
continue-on-error: true
107-
id: retry2
108-
if: steps.retry1.outcome=='failure'
109-
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
110-
- name: Install packages
111-
run: sudo apt-get install -y g++-12 clang-14 clang-15 libgmp-dev libmpfr-dev libfftw3-dev
112-
- name: Checkout main boost
113-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
114-
- name: Update tools/boostdep
115-
run: git submodule update --init tools/boostdep
116-
working-directory: ../boost-root
117-
- name: Copy files
118-
run: cp -r $GITHUB_WORKSPACE/* libs/math
119-
working-directory: ../boost-root
120-
- name: Install deps
121-
run: python tools/boostdep/depinst/depinst.py math -I example -I tools
122-
working-directory: ../boost-root
123-
- name: Bootstrap
124-
run: ./bootstrap.sh
125-
working-directory: ../boost-root
126-
- name: Generate headers
127-
run: ./b2 headers
128-
working-directory: ../boost-root
129-
- name: Generate user config
130-
run: 'echo "using $TOOLSET : : ${{ matrix.compiler }} : <cxxflags>-std=${{ matrix.standard }} ;" > ~/user-config.jam'
131-
working-directory: ../boost-root
132-
- name: Config info install
133-
run: ../../../b2 config_info_travis_install toolset=$TOOLSET
134-
working-directory: ../boost-root/libs/config/test
135-
- name: Config info
136-
run: ./config_info_travis
137-
working-directory: ../boost-root/libs/config/test
138-
- name: Test
139-
run: ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER define=BOOST_MATH_RUN_MP_TESTS
140-
working-directory: ../boost-root/libs/math/test
14181
ubuntu-focal-no-eh:
142-
runs-on: ubuntu-20.04
82+
runs-on: ubuntu-24.04
14383
strategy:
14484
fail-fast: false
14585
matrix:
146-
compiler: [ g++-9, g++-11, clang++-10 ]
147-
standard: [ c++14, c++17, c++2a ]
86+
compiler: [ g++-13, clang++-19 ]
87+
standard: [ c++14, c++17, c++20, c++23 ]
14888
steps:
14989
- uses: actions/checkout@v4
15090
with:
@@ -166,7 +106,7 @@ jobs:
166106
if: steps.retry1.outcome=='failure'
167107
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
168108
- name: Install packages
169-
run: sudo apt-get install -y g++-9 g++-11 clang-9 clang-10 libgmp-dev libmpfr-dev libfftw3-dev
109+
run: sudo apt-get install -y g++-13 clang-19 libgmp-dev libmpfr-dev libfftw3-dev
170110
- name: Checkout main boost
171111
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
172112
- name: Update tools/boostdep
@@ -234,57 +174,8 @@ jobs:
234174
- name: Test
235175
run: ../../../b2 toolset=${{ matrix.toolset }} cxxstd=${{ matrix.standard }} ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER
236176
working-directory: ../boost-root/libs/math/test
237-
windows:
238-
runs-on: windows-2019
239-
defaults:
240-
run:
241-
shell: cmd
242-
env:
243-
ARGS: toolset=${{ matrix.toolset }} address-model=64 cxxstd=${{ matrix.standard }}
244-
ARGSLATEST: toolset=${{ matrix.toolset }} address-model=64 cxxstd=latest
245-
strategy:
246-
fail-fast: false
247-
matrix:
248-
toolset: [ msvc-14.2 ]
249-
standard: [ 14, 17 ]
250-
suite: [ github_ci_block_1, github_ci_block_2 ]
251-
steps:
252-
- uses: actions/checkout@v4
253-
with:
254-
fetch-depth: '0'
255-
- name: Checkout main boost
256-
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
257-
- name: Update tools/boostdep
258-
run: git submodule update --init tools/boostdep
259-
working-directory: ../boost-root
260-
- name: Copy files
261-
run: xcopy /s /e /q %GITHUB_WORKSPACE% libs\math
262-
working-directory: ../boost-root
263-
- name: Install deps
264-
run: python tools/boostdep/depinst/depinst.py math -I example -I tools
265-
working-directory: ../boost-root
266-
- name: Bootstrap
267-
run: bootstrap
268-
working-directory: ../boost-root
269-
- name: Generate headers
270-
run: b2 headers
271-
working-directory: ../boost-root
272-
- name: Config info install
273-
run: ..\..\..\b2 config_info_travis_install %ARGS%
274-
working-directory: ../boost-root/libs/config/test
275-
- name: Config info
276-
run: config_info_travis
277-
working-directory: ../boost-root/libs/config/test
278-
- name: Test std-14 vc140 and std-14-17 vc142
279-
if: ${{ matrix.toolset != 'msvc-14.0' || matrix.standard != '17' }}
280-
run: ..\..\..\b2 --hash %ARGS% define=CI_SUPPRESS_KNOWN_ISSUES debug-symbols=off ${{ matrix.suite }} pch=off
281-
working-directory: ../boost-root/libs/math/test
282-
- name: Test std-latest vc140
283-
if: ${{ matrix.toolset == 'msvc-14.0' && matrix.standard == '17' }}
284-
run: ..\..\..\b2 --hash %ARGSLATEST% define=CI_SUPPRESS_KNOWN_ISSUES debug-symbols=off ${{ matrix.suite }} pch=off
285-
working-directory: ../boost-root/libs/math/test
286177
windows_gcc:
287-
runs-on: windows-2019
178+
runs-on: windows-2025
288179
defaults:
289180
run:
290181
shell: cmd
@@ -294,7 +185,7 @@ jobs:
294185
fail-fast: false
295186
matrix:
296187
toolset: [ gcc ]
297-
standard: [ 14, 17 ]
188+
standard: [ 14 ]
298189
suite: [ github_ci_block_1, github_ci_block_2 ]
299190
steps:
300191
- uses: actions/checkout@v4
@@ -408,11 +299,11 @@ jobs:
408299
- name: Test
409300
run: C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE")/../boost-root/libs/math/test && ../../../b2 toolset=$TOOLSET ${{ matrix.suite }} define=CI_SUPPRESS_KNOWN_ISSUES define=SLOW_COMPILER'
410301
standalone-compile-tests-gcc:
411-
runs-on: ubuntu-20.04
302+
runs-on: ubuntu-24.04
412303
strategy:
413304
fail-fast: false
414305
matrix:
415-
compiler: [ g++-10 ]
306+
compiler: [ g++-13 ]
416307
steps:
417308
- uses: actions/checkout@v4
418309
with:
@@ -432,7 +323,7 @@ jobs:
432323
if: steps.retry1.outcome=='failure'
433324
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
434325
- name: Install packages
435-
run: sudo apt-get install -y g++-10 libgmp-dev libmpfr-dev libfftw3-dev
326+
run: sudo apt-get install -y g++-13 libgmp-dev libmpfr-dev libfftw3-dev
436327
- name: Checkout main boost
437328
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
438329
- name: Update tools/boostdep
@@ -442,17 +333,17 @@ jobs:
442333
run: cp -r $GITHUB_WORKSPACE/* libs/math
443334
working-directory: ../boost-root
444335
- name: Run CMake
445-
run: cmake -DBUILD_TESTING=1 -DCMAKE_CXX_COMPILER=g++-10 .
336+
run: cmake -DBUILD_TESTING=1 -DCMAKE_CXX_COMPILER=g++-13 .
446337
working-directory: ../boost-root/libs/math
447338
- name: Run Compile Tests
448339
run: make -j$((`nproc`+1))
449340
working-directory: ../boost-root/libs/math
450341
standalone-compile-tests-clang:
451-
runs-on: ubuntu-20.04
342+
runs-on: ubuntu-24.04
452343
strategy:
453344
fail-fast: false
454345
matrix:
455-
compiler: [ clang++-10 ]
346+
compiler: [ clang++-19 ]
456347
steps:
457348
- uses: actions/checkout@v4
458349
with:
@@ -472,7 +363,7 @@ jobs:
472363
if: steps.retry1.outcome=='failure'
473364
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
474365
- name: Install packages
475-
run: sudo apt-get install -y clang-10 libgmp-dev libmpfr-dev libfftw3-dev libtbb-dev
366+
run: sudo apt-get install -y clang-19 libgmp-dev libmpfr-dev libfftw3-dev libtbb-dev
476367
- name: Checkout main boost
477368
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
478369
- name: Update tools/boostdep
@@ -482,18 +373,18 @@ jobs:
482373
run: cp -r $GITHUB_WORKSPACE/* libs/math
483374
working-directory: ../boost-root
484375
- name: Run CMake
485-
run: cmake -DBUILD_TESTING=1 -DCMAKE_CXX_COMPILER=clang++-10 .
376+
run: cmake -DBUILD_TESTING=1 -DCMAKE_CXX_COMPILER=clang++-19 .
486377
working-directory: ../boost-root/libs/math
487378
- name: Run Compile Tests
488379
run: make -j$((`nproc`+1))
489380
working-directory: ../boost-root/libs/math
490381
standalone-gcc:
491-
runs-on: ubuntu-20.04
382+
runs-on: ubuntu-24.04
492383
strategy:
493384
fail-fast: false
494385
matrix:
495-
compiler: [ g++-10 ]
496-
standard: [ c++14, c++17, c++20 ]
386+
compiler: [ g++-13 ]
387+
standard: [ c++14, c++17, c++20, c++23 ]
497388
suite: [ github_ci_block_1, github_ci_block_2 ]
498389
steps:
499390
- uses: actions/checkout@v4
@@ -516,7 +407,7 @@ jobs:
516407
if: steps.retry1.outcome=='failure'
517408
run: sudo apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
518409
- name: Install packages
519-
run: sudo apt-get install -y g++-10 libgmp-dev libmpfr-dev libfftw3-dev
410+
run: sudo apt-get install -y g++-13 libgmp-dev libmpfr-dev libfftw3-dev
520411
- name: Checkout main boost
521412
run: git clone -b develop --depth 1 https://github.com/boostorg/boost.git ../boost-root
522413
- name: Update tools/boostdep
@@ -552,7 +443,7 @@ jobs:
552443
fail-fast: false
553444
matrix:
554445
include:
555-
- os: ubuntu-22.04
446+
- os: ubuntu-24.04
556447

557448
runs-on: ${{matrix.os}}
558449

@@ -664,13 +555,13 @@ jobs:
664555
strategy:
665556
fail-fast: false
666557

667-
runs-on: ubuntu-22.04
558+
runs-on: ubuntu-24.04
668559

669560
steps:
670-
- uses: Jimver/[email protected].16
561+
- uses: Jimver/[email protected].25
671562
id: cuda-toolkit
672563
with:
673-
cuda: '12.5.0'
564+
cuda: '12.8.0'
674565
method: 'network'
675566
sub-packages: '["nvcc"]'
676567

@@ -708,7 +599,7 @@ jobs:
708599
run: |
709600
cd ../boost-root
710601
mkdir __build__ && cd __build__
711-
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DBOOST_MATH_ENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=70 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.5 ..
602+
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DBOOST_MATH_ENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=86 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.8 ..
712603
- name: Build tests
713604
run: |
714605
cd ../boost-root/__build__
@@ -718,61 +609,3 @@ jobs:
718609
# run: |
719610
# cd ../boost-root/__build__
720611
# ctest --output-on-failure --no-tests=error
721-
nvrtc-cmake-test:
722-
strategy:
723-
fail-fast: false
724-
725-
runs-on: ubuntu-22.04
726-
727-
steps:
728-
- uses: Jimver/[email protected]
729-
id: cuda-toolkit
730-
with:
731-
cuda: '12.5.0'
732-
method: 'network'
733-
734-
- name: Output CUDA information
735-
run: |
736-
echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}"+
737-
echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}"
738-
nvcc -V
739-
- uses: actions/checkout@v4
740-
741-
- name: Install Packages
742-
run: |
743-
sudo apt-get install -y cmake make
744-
- name: Setup Boost
745-
run: |
746-
echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY
747-
LIBRARY=${GITHUB_REPOSITORY#*/}
748-
echo LIBRARY: $LIBRARY
749-
echo "LIBRARY=$LIBRARY" >> $GITHUB_ENV
750-
echo GITHUB_BASE_REF: $GITHUB_BASE_REF
751-
echo GITHUB_REF: $GITHUB_REF
752-
REF=${GITHUB_BASE_REF:-$GITHUB_REF}
753-
REF=${REF#refs/heads/}
754-
echo REF: $REF
755-
BOOST_BRANCH=develop && [ "$REF" == "master" ] && BOOST_BRANCH=master || true
756-
echo BOOST_BRANCH: $BOOST_BRANCH
757-
cd ..
758-
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
759-
cd boost-root
760-
mkdir -p libs/$LIBRARY
761-
cp -r $GITHUB_WORKSPACE/* libs/$LIBRARY
762-
git submodule update --init tools/boostdep
763-
python3 tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY
764-
- name: Configure
765-
run: |
766-
cd ../boost-root
767-
mkdir __build__ && cd __build__
768-
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc -DBOOST_MATH_ENABLE_NVRTC=1 -DCMAKE_CUDA_ARCHITECTURES=70 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-12.5 -DBOOST_MATH_NVRTC_CI_RUN=1 ..
769-
pwd
770-
- name: Build tests
771-
run: |
772-
cd ../boost-root/__build__
773-
cmake --build . --target tests -j $(nproc)
774-
# We don't have the ability for runtime right now
775-
#- name: Run tests
776-
# run: |
777-
# cd ../boost-root/__build__
778-
# ctest --output-on-failure --no-tests=error

third-party/boost-math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
cmake_minimum_required(VERSION 3.5...3.16)
77

8-
project(boost_math VERSION 1.88.0 LANGUAGES CXX)
8+
project(boost_math VERSION 1.89.0 LANGUAGES CXX)
99

1010
add_library(boost_math INTERFACE)
1111

0 commit comments

Comments
 (0)