mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-07-21 13:23:49 +00:00
performance: update tests and CI scripts.
This commit is contained in:
+10
-10
@@ -156,7 +156,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++03 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++03 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -170,7 +170,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++11 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++11 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -184,7 +184,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++14 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-6 CXXSTD=gnu++14 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -366,7 +366,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++14 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-5 CXXSTD=c++14 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -464,7 +464,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++17 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-8 CXXSTD=gnu++17 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -562,7 +562,7 @@ matrix:
|
||||
- ubuntu-toolchain-r-test
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=gcc COMPILER=g++-9 CXXSTD=gnu++17 TEST_SUITE=conversions
|
||||
env: TOOLSET=gcc COMPILER=g++-9 CXXSTD=gnu++17 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -666,7 +666,7 @@ matrix:
|
||||
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
|
||||
|
||||
- os: linux
|
||||
env: TOOLSET=clang COMPILER=clang++-9 CXXSTD=c++17 TEST_SUITE=conversions
|
||||
env: TOOLSET=clang COMPILER=clang++-9 CXXSTD=c++17 TEST_SUITE="conversions performance"
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
@@ -742,7 +742,7 @@ matrix:
|
||||
osx_image: xcode9.3
|
||||
|
||||
- os: osx
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE=conversions
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE="conversions performance"
|
||||
osx_image: xcode9.3
|
||||
|
||||
- os: osx
|
||||
@@ -770,7 +770,7 @@ matrix:
|
||||
osx_image: xcode8.3
|
||||
|
||||
- os: osx
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE=conversions
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE="conversions performance"
|
||||
osx_image: xcode8.3
|
||||
|
||||
- os: osx
|
||||
@@ -798,7 +798,7 @@ matrix:
|
||||
osx_image: xcode7.3
|
||||
|
||||
- os: osx
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE=conversions
|
||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=c++14 TEST_SUITE="conversions performance"
|
||||
osx_image: xcode7.3
|
||||
|
||||
- os: osx
|
||||
|
||||
+3
-1
@@ -42,6 +42,7 @@ lib mpfi ;
|
||||
lib mpc ;
|
||||
lib quadmath ;
|
||||
lib tommath ;
|
||||
lib f2c ;
|
||||
|
||||
actions mp_simple_run_action
|
||||
{
|
||||
@@ -70,6 +71,7 @@ mp-run-simple has_tommath.cpp tommath : : :
|
||||
mp-run-simple has_float128.cpp quadmath : : : : has_float128 ;
|
||||
exe has_intel_quad : has_intel_quad.cpp : <cxxflags>-Qoption,cpp,--extended_float_type ;
|
||||
exe has_eigen : has_eigen.cpp ;
|
||||
exe has_f2c : has_f2c.cpp f2c ;
|
||||
obj has_is_constant_evaluated : has_is_constant_evaluated.cpp ;
|
||||
obj has_constexpr_limits : has_constexpr_limits_cmd.cpp : <cxxflags>-fconstexpr-ops-limit=268435456 ;
|
||||
|
||||
@@ -83,5 +85,5 @@ explicit has_mpc ;
|
||||
explicit has_eigen ;
|
||||
explicit has_is_constant_evaluated ;
|
||||
explicit has_constexpr_limits ;
|
||||
|
||||
explicit has_f2c ;
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// Copyright John Maddock 2019.
|
||||
// Use, modification and distribution are subject to the
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <f2c.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
+67
-50
@@ -34,6 +34,7 @@ project : requirements
|
||||
lib gmp ;
|
||||
lib mpfr ;
|
||||
lib quadmath ;
|
||||
lib f2c ;
|
||||
|
||||
if $(tommath_path)
|
||||
{
|
||||
@@ -45,7 +46,9 @@ else
|
||||
TOMMATH = tommath ;
|
||||
}
|
||||
|
||||
exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB performance_test_files : *.cpp ]
|
||||
test-suite performance :
|
||||
|
||||
[ exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB performance_test_files : *.cpp ]
|
||||
: release
|
||||
[ check-target-builds ../config//has_gmp : <define>TEST_MPF <define>TEST_MPZ <define>TEST_MPQ <source>gmp : ]
|
||||
[ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
|
||||
@@ -54,18 +57,18 @@ exe performance_test : performance_test.cpp /boost/system//boost_system [ GLOB p
|
||||
<define>TEST_CPP_BIN_FLOAT
|
||||
<define>TEST_CPP_INT
|
||||
<define>TEST_CPP_INT_RATIONAL
|
||||
;
|
||||
]
|
||||
|
||||
exe miller_rabin_performance : miller_rabin_performance.cpp [ GLOB miller_rabin_performance_files : *.cpp ] /boost/system//boost_system /boost/chrono//boost_chrono
|
||||
[ exe miller_rabin_performance : miller_rabin_performance.cpp [ GLOB miller_rabin_performance_files : *.cpp ] /boost/system//boost_system /boost/chrono//boost_chrono
|
||||
: release
|
||||
[ check-target-builds ../config//has_gmp : <define>TEST_MPF <define>TEST_MPZ <source>gmp : ]
|
||||
[ check-target-builds ../config//has_mpfr : <define>TEST_MPFR <source>mpfr : ]
|
||||
[ check-target-builds ../config//has_tommath : <define>TEST_TOMMATH <source>$(TOMMATH) : ]
|
||||
<define>TEST_CPP_DEC_FLOAT
|
||||
<define>TEST_CPP_INT
|
||||
;
|
||||
]
|
||||
|
||||
exe sf_performance : sf_performance.cpp sf_performance_basic.cpp sf_performance_bessel.cpp
|
||||
[ exe sf_performance : sf_performance.cpp sf_performance_basic.cpp sf_performance_bessel.cpp
|
||||
sf_performance_nct.cpp sf_performance_poly.cpp
|
||||
[ GLOB sf_performance_files : *.cpp ]
|
||||
/boost/system//boost_system /boost/chrono//boost_chrono /boost/thread//boost_thread
|
||||
@@ -77,106 +80,120 @@ exe sf_performance : sf_performance.cpp sf_performance_basic.cpp sf_performance_
|
||||
<define>TEST_CPP_BIN_FLOAT
|
||||
<define>TEST_FLOAT
|
||||
<toolset>msvc:<cxxflags>-bigobj
|
||||
;
|
||||
]
|
||||
|
||||
exe delaunay_test : delaunay_test.cpp /boost/system//boost_system /boost/chrono//boost_chrono ;
|
||||
[ exe delaunay_test : delaunay_test.cpp /boost/system//boost_system /boost/chrono//boost_chrono ]
|
||||
|
||||
exe voronoi_performance : voronoi_performance.cpp /boost/system//boost_system /boost/chrono//boost_chrono
|
||||
[ exe voronoi_performance : voronoi_performance.cpp /boost/system//boost_system /boost/chrono//boost_chrono
|
||||
: release
|
||||
[ check-target-builds ../config//has_gmp : <define>TEST_GMP <source>gmp : ]
|
||||
[ check-target-builds ../config//has_tommath : <define>TEST_TOMMATH <source>$(TOMMATH) : ]
|
||||
;
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_mpfr : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_mpfr : linpack-benchmark.cpp
|
||||
: release
|
||||
[ check-target-builds ../config//has_mpfr : : <build>no ]
|
||||
<define>TEST_MPFR_50
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_mpf : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_mpf : linpack-benchmark.cpp
|
||||
: release
|
||||
[ check-target-builds ../config//has_gmp : : <build>no ]
|
||||
<define>TEST_MPF_50
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_cpp_float : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_cpp_float : linpack-benchmark.cpp
|
||||
: release
|
||||
<define>TEST_CPP_DEC_FLOAT
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_double : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_double : linpack-benchmark.cpp
|
||||
: release
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_native_float128 : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_native_float128 : linpack-benchmark.cpp
|
||||
: release
|
||||
<define>NATIVE_FLOAT128
|
||||
[ check-target-builds ../config//has_float128 : : <build>no ]
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_float128 : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_float128 : linpack-benchmark.cpp
|
||||
: release
|
||||
<define>TEST_FLOAT128
|
||||
[ check-target-builds ../config//has_float128 : : <build>no ]
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_cpp_quad_float : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_cpp_quad_float : linpack-benchmark.cpp
|
||||
: release
|
||||
<define>TEST_CPP_BIN_FLOAT_QUAD
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
obj obj_linpack_benchmark_cpp_oct_float : linpack-benchmark.cpp
|
||||
[ obj obj_linpack_benchmark_cpp_oct_float : linpack-benchmark.cpp
|
||||
: release
|
||||
<define>TEST_CPP_BIN_FLOAT_OCT
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
lib f2c ;
|
||||
|
||||
exe linpack_benchmark_mpfr : obj_linpack_benchmark_mpfr mpfr f2c gmp
|
||||
[ exe linpack_benchmark_mpfr : obj_linpack_benchmark_mpfr mpfr f2c gmp
|
||||
: release
|
||||
[ check-target-builds ../config//has_mpfr : : <build>no ]
|
||||
<define>TEST_MPFR_50
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_mpf : obj_linpack_benchmark_mpf gmp f2c
|
||||
[ exe linpack_benchmark_mpf : obj_linpack_benchmark_mpf gmp f2c
|
||||
: release
|
||||
[ check-target-builds ../config//has_gmp : : <build>no ]
|
||||
<define>TEST_MPF_50
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_cpp_float : obj_linpack_benchmark_cpp_float f2c
|
||||
[ exe linpack_benchmark_cpp_float : obj_linpack_benchmark_cpp_float f2c
|
||||
: release
|
||||
<define>TEST_CPP_DEC_FLOAT
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_double : obj_linpack_benchmark_double f2c
|
||||
[ exe linpack_benchmark_double : obj_linpack_benchmark_double f2c
|
||||
: release
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_native_float128 : obj_linpack_benchmark_native_float128 f2c
|
||||
[ exe linpack_benchmark_native_float128 : obj_linpack_benchmark_native_float128 f2c
|
||||
: release
|
||||
[ check-target-builds ../config//has_float128 : : <build>no ]
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_float128 : obj_linpack_benchmark_float128 f2c
|
||||
[ exe linpack_benchmark_float128 : obj_linpack_benchmark_float128 f2c
|
||||
: release
|
||||
[ check-target-builds ../config//has_float128 : : <build>no ]
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_cpp_quad_float : obj_linpack_benchmark_cpp_quad_float f2c
|
||||
[ exe linpack_benchmark_cpp_quad_float : obj_linpack_benchmark_cpp_quad_float f2c
|
||||
: release
|
||||
;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
exe linpack_benchmark_cpp_oct_float : obj_linpack_benchmark_cpp_oct_float f2c
|
||||
[ exe linpack_benchmark_cpp_oct_float : obj_linpack_benchmark_cpp_oct_float f2c
|
||||
: release
|
||||
;
|
||||
|
||||
install miller_rabin_install : miller_rabin_performance : <location>. ;
|
||||
install performance_test_install : performance_test : <location>. ;
|
||||
install sf_performance_install : sf_performance : <location>. ;
|
||||
install . : linpack_benchmark_double linpack_benchmark_cpp_float linpack_benchmark_mpf linpack_benchmark_mpfr linpack_benchmark_native_float128 linpack_benchmark_float128 linpack_benchmark_cpp_quad_float linpack_benchmark_cpp_oct_float ;
|
||||
install delaunay_install : delaunay_test : <location>. ;
|
||||
install voronoi_install : voronoi_performance : <location>. ;
|
||||
[ check-target-builds ../config//has_f2c : : <build>no ]
|
||||
]
|
||||
|
||||
[ install miller_rabin_install : miller_rabin_performance : <location>. ]
|
||||
[ install performance_test_install : performance_test : <location>. ]
|
||||
[ install sf_performance_install : sf_performance : <location>. ]
|
||||
[ install . : linpack_benchmark_double linpack_benchmark_cpp_float linpack_benchmark_mpf linpack_benchmark_mpfr linpack_benchmark_native_float128 linpack_benchmark_float128 linpack_benchmark_cpp_quad_float linpack_benchmark_cpp_oct_float ]
|
||||
[ install delaunay_install : delaunay_test : <location>. ]
|
||||
[ install voronoi_install : voronoi_performance : <location>. ]
|
||||
|
||||
;
|
||||
|
||||
|
||||
@@ -1239,3 +1239,4 @@ rule get_concept_checks
|
||||
test-suite concepts : [ get_concept_checks ] ;
|
||||
|
||||
test-suite examples : ../example//examples ;
|
||||
test-suite performance : ../performance//performance ;
|
||||
|
||||
Reference in New Issue
Block a user