Skip to content

Commit 5ad2dc5

Browse files
committed
Merge branch 'master' of github.com:bluescarni/mppp
2 parents 67a6025 + 916a11f commit 5ad2dc5

File tree

6 files changed

+39
-11
lines changed

6 files changed

+39
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ matrix:
1111
arch: ppc64le
1212
dist: focal
1313
script:
14-
- tools/travis_ubuntu_ppc64.sh
14+
- tools/travis_docker.sh
1515

1616
notifications:
1717
email: false

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if(NOT CMAKE_BUILD_TYPE)
1212
FORCE)
1313
endif()
1414

15-
project(mp++ VERSION 0.25 LANGUAGES CXX C)
15+
project(mp++ VERSION 0.26 LANGUAGES CXX C)
1616

1717
list(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)
276276
else()
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)

config.hpp.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,17 @@
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

doc/changelog.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
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+
414
0.25 (2021-08-31)
515
-----------------
616

tools/travis_docker.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

tools/travis_ubuntu_ppc64.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ set -x
66
# Exit on error.
77
set -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.
1314
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-ppc64le.sh -O miniconda.sh
1415
export deps_dir=$HOME/local
1516
export PATH="$HOME/miniconda/bin:$PATH"
1617
bash 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
1919
source activate $deps_dir
20-
conda install $conda_pkgs -y
2120

2221
# Create the build dir and cd into it.
22+
cd /mppp
2323
mkdir build
2424
cd 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
2828
make -j2 VERBOSE=1
2929
# Run the tests.
3030
ctest -V -j2

0 commit comments

Comments
 (0)