File tree Expand file tree Collapse file tree 6 files changed +39
-11
lines changed Expand file tree Collapse file tree 6 files changed +39
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ matrix:
1111 arch : ppc64le
1212 dist : focal
1313script :
14- - tools/travis_ubuntu_ppc64 .sh
14+ - tools/travis_docker .sh
1515
1616notifications :
1717 email : false
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if(NOT CMAKE_BUILD_TYPE)
1212 FORCE)
1313endif ()
1414
15- project (mp++ VERSION 0.25 LANGUAGES CXX C)
15+ project (mp++ VERSION 0.26 LANGUAGES CXX C)
1616
1717list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" "${CMAKE_CURRENT_SOURCE_DIR} /cmake/yacma" )
1818
@@ -276,8 +276,8 @@ if(MPPP_BUILD_STATIC_LIBRARY)
276276else ()
277277 # Setup of the mp++ shared library.
278278 add_library (mp++ SHARED "${MPPP_SRC_FILES} " )
279- set_property (TARGET mp++ PROPERTY VERSION "11 .0" )
280- set_property (TARGET mp++ PROPERTY SOVERSION 11 )
279+ set_property (TARGET mp++ PROPERTY VERSION "12 .0" )
280+ set_property (TARGET mp++ PROPERTY SOVERSION 12 )
281281 set_property (TARGET mp++ PROPERTY DEFINE_SYMBOL "mppp_EXPORTS" )
282282 set_target_properties (mp++ PROPERTIES CXX_VISIBILITY_PRESET hidden)
283283 set_target_properties (mp++ PROPERTIES VISIBILITY_INLINES_HIDDEN TRUE )
Original file line number Diff line number Diff line change 240240#else
241241
242242// On non-clang, let's always assume that __float128
243- // can interact with long double.
243+ // can interact with long double, *unless* we are on
244+ // PowerPC. On such a setup, GCC disables interaction
245+ // between __float128 and long double.
246+ #if !defined(__PPC__)
247+
244248#define MPPP_FLOAT128_WITH_LONG_DOUBLE
245249
246250#endif
247251
248252#endif
249253
250254#endif
255+
256+ #endif
Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ 0.26 (unreleased)
5+ -----------------
6+
7+ Fix
8+ ~~~
9+
10+ - :cpp:class: `~mppp::real128 ` and :cpp:class: `~mppp::complex128 `
11+ are now correctly supported on PPC64, if ``__float128 `` is available
12+ (`#286 <https://github.com/bluescarni/mppp/pull/286 >`__).
13+
4140.25 (2021-08-31)
515-----------------
616
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Echo each command.
4+ set -x
5+
6+ # Exit on error.
7+ set -e
8+
9+ docker run --rm -v ` pwd` :/mppp ubuntu:focal bash /mppp/tools/travis_ubuntu_ppc64.sh
10+
11+ set +e
12+ set +x
Original file line number Diff line number Diff line change 66# Exit on error.
77set -e
88
9- # Core deps.
10- sudo apt-get install build-essential wget
9+ # Install wget.
10+ apt-get update
11+ apt-get -y install wget
1112
1213# Install conda+deps.
1314wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-ppc64le.sh -O miniconda.sh
1415export deps_dir=$HOME /local
1516export PATH=" $HOME /miniconda/bin:$PATH "
1617bash miniconda.sh -b -p $HOME /miniconda
17- conda_pkgs=" cmake gmp mpfr libflint arb python=3.8 pybind11 mpc boost-cpp"
18- conda create -q -p $deps_dir -y
18+ conda create -y -q -p $deps_dir cmake gmp mpfr libflint arb python=3.8 pybind11 mpc boost-cpp c-compiler cxx-compiler make
1919source activate $deps_dir
20- conda install $conda_pkgs -y
2120
2221# Create the build dir and cd into it.
22+ cd /mppp
2323mkdir build
2424cd build
2525
2626# GCC build.
27- cmake ../ -DCMAKE_PREFIX_PATH=$deps_dir -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Debug -DMPPP_BUILD_TESTS=YES -DBoost_NO_BOOST_CMAKE=ON -DMPPP_WITH_BOOST_S11N=yes -DMPPP_WITH_MPFR=yes -DMPPP_WITH_MPC=yes -DMPPP_WITH_ARB=yes -DMPPP_TEST_PYBIND11=yes -DPYBIND11_PYTHON_VERSION=3.8 -DMPPP_ENABLE_IPO=yes
27+ cmake ../ -DCMAKE_PREFIX_PATH=$deps_dir -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Debug -DMPPP_BUILD_TESTS=YES -DBoost_NO_BOOST_CMAKE=ON -DMPPP_WITH_BOOST_S11N=yes -DMPPP_WITH_QUADMATH=yes - DMPPP_WITH_MPFR=yes -DMPPP_WITH_MPC=yes -DMPPP_WITH_ARB=yes -DMPPP_TEST_PYBIND11=yes -DPYBIND11_PYTHON_VERSION=3.8
2828make -j2 VERBOSE=1
2929# Run the tests.
3030ctest -V -j2
You can’t perform that action at this time.
0 commit comments