Skip to content
Snippets Groups Projects
  1. Aug 22, 2018
  2. Aug 21, 2018
  3. Aug 20, 2018
  4. Jul 27, 2018
  5. Jul 09, 2018
  6. Jul 06, 2018
    • Jö Fahlke's avatar
      [!551] [SIMD] Provide ostream inserters. · 0ff1384d
      Jö Fahlke authored
      Merge branch 'simd-io' into 'master'
      
      Apparently, output of Vc vectors does not work with libc++. I suspect it has
      to do with some hackery Vc does in relation to the standard output streams.
      
      This introduces syntax like
      
            std::cout << Dune::Simd::io(simd_vec) << std::endl;
            std::cout << Dune::Simd::vio(simd_vec) << std::endl;
      
      to produce output like
      
          <1, 2, 3, 4>
      
      The difference between the two versions is that io() will skip the angle
      bracket for one-component vectors, while vio() will always print them.
      
      See merge request [core/dune-common!551]
      
        [core/dune-common!551]: gitlab.dune-project.org/core/dune-common/merge_requests/551
      0ff1384d
    • Jö Fahlke's avatar
      [SIMD] Provide ostream inserters. · b7598f60
      Jö Fahlke authored
      Apparently, output of Vc vectors does not work with libc++.  I suspect it has
      to do with some hackery Vc does in relation to the standard output streams.
      
      This introduces syntax like
      ```c++
        std::cout << Dune::Simd::io(simd_vec) << std::endl;
        std::cout << Dune::Simd::vio(simd_vec) << std::endl;
      ```
      to produce output like
      ```
      <1, 2, 3, 4>
      ```
      
      The difference between the two versions is that `io()` will skip the angle
      bracket for one-component vectors, while `vio()` will always print them.
      b7598f60
    • Jö Fahlke's avatar
      [SIMD] Check for ostream inserters. · 2d104413
      Jö Fahlke authored
      2d104413
    • Jö Fahlke's avatar
      [!550] [DebugAlign] Provide min() and max() overloads. · 65ad01ec
      Jö Fahlke authored
      Merge branch 'debugalign-overload-min-max' into 'master'
      
      A superficial reading of the standard's LessThanComparable requirement may
      suggest that we could actually use std::min() and std::max(). But as it turns
      out this isn't all that clear, see
      <https://cplusplus.github.io/LWG/issue2114>. libc++ chose LessThanComparable
      in a way that requires the result of the comparison to be implicitly
      convertible to bool, which we cannot guarantee as we do not want the debug
      type the automatically decay into its underlying type in all kinds of
      contexts. So we go with the alternative route of overloading min() and max().
      
      Adresses: [core/dune-istl#50]
      
      See merge request [core/dune-common!550]
      
        [core/dune-istl#50]: gitlab.dune-project.org/core/dune-istl/issues/50
        [core/dune-common!550]: gitlab.dune-project.org/core/dune-common/merge_requests/550
      65ad01ec
    • Jö Fahlke's avatar
      [DebugAlign] Provide min() and max() overloads. · 250111a4
      Jö Fahlke authored
      A superficial reading of the standard's LessThanComparable requirement may
      suggest that we could actually use std::min() and std::max().  But as it turns
      out this isn't all that clear, see https://cplusplus.github.io/LWG/issue2114.
      libc++ chose LessThanComparable in a way that requires the result of the
      comparison to be implicitly convertible to bool, which we cannot guarantee
      as we do not want the debug type the automatically decay into its underlying
      type in all kinds of contexts.  So we go with the alternative route of
      overloading min() and max().
      
      Adresses: core/dune-istl#50
      250111a4
  7. Jul 05, 2018
  8. Jul 03, 2018
  9. Jun 30, 2018
    • Steffen Müthing's avatar
      [!544] Improve virtualenv placement · 616249cb
      Steffen Müthing authored
      The current logic for placing / locating the virtualenv is rather flaky in combination with
      installed modules or when `DUNE_PYTHON_VIRTUALENV_SETUP` was not enabled for all modules (as happens
      in the CI images).
      
      This MR improves the situation in two ways:
      
      - It allows users to explicitly set `DUNE_PYTHON_VIRTUALENV_PATH` when running CMake. The build
        system will then use the given path for the virtualenv instead of guessing a location.
      
      - When using an absolute build directory with dunecontrol, the virtualenv will no longer be placed
        inside the build directory of any module, but in the dedicated top-level directory
        `dune-python-env` inside the build directory root. This behavior can be disabled by setting
        `DUNE_PYTHON_EXTERNAL_VIRTUALENV_FOR_ABSOLUTE_BUILDDIR=0`.
      
      See merge request core/dune-common!544
      616249cb
    • Steffen Müthing's avatar
    • Steffen Müthing's avatar
      Improve buildsystem logic for placing the Python virtualenv · 5d22246a
      Steffen Müthing authored
      The current logic for placing / locating the virtualenv is rather flaky in combination with
      installed modules or when `DUNE_PYTHON_VIRTUALENV_SETUP` was not enabled for all modules (as happens
      in the CI images).
      
      This patch improves the situation in two ways:
      
      - It allows users to explicitly set `DUNE_PYTHON_VIRTUALENV_PATH` when running CMake. The build
        system will then use the given path for the virtualenv instead of guessing a location.
      
      - When using an absolute build directory with dunecontrol, the virtualenv will no longer be placed
        inside the build directory of any module, but in the dedicated top-level directory
        `dune-python-env` inside the build directory root. This behavior can be disabled by setting
        `DUNE_PYTHON_EXTERNAL_VIRTUALENV_FOR_ABSOLUTE_BUILDDIR=0`.
      5d22246a
    • Steffen Müthing's avatar
      [!542] Export root of absolute build directory tree to CMake · d3bc7995
      Steffen Müthing authored
      Knowing whether `dunecontrol` was invoked with an absolute build directory can be very useful in CMake, as we can then place state that is shared between multiple modules directly in the build directory, e.g. the Python virtualenv.
      
      See merge request core/dune-common!542
      d3bc7995
    • Steffen Müthing's avatar
    • Steffen Müthing's avatar
      [!10] Make Python package detection work with pip 10 · 746aa626
      Steffen Müthing authored
      pip 10 moved several interfaces to an internal package, causing our pyversion.py script to fail.
      This patches fixes the issue by getting installed distributions directly from setuptools, as
      suggested in https://github.com/pypa/pip/issues/5243.
      
      See merge request core/dune-common!540
      746aa626
    • Steffen Müthing's avatar
      Make Python package detection work with pip 10 · 2443bc4a
      Steffen Müthing authored
      pip 10 moved several interfaces to an internal package, causing our pyversion.py script to fail.
      This patches fixes the issue by getting installed distributions directly from setuptools, as
      suggested in https://github.com/pypa/pip/issues/5243.
      2443bc4a
  10. Jun 29, 2018
  11. Jun 28, 2018
Loading