Skip to content
Snippets Groups Projects
  1. Apr 09, 2021
  2. Mar 20, 2021
  3. Mar 18, 2021
  4. Mar 09, 2021
  5. Mar 07, 2021
  6. Nov 06, 2020
  7. Oct 19, 2020
  8. Mar 18, 2020
  9. Mar 13, 2020
    • Markus Blatt's avatar
      Get rid off fortran compiler usage for Lapack/Blas. · 54ac7b4b
      Markus Blatt authored and Christoph Grüninger's avatar Christoph Grüninger committed
      FindLAPACK and FindBLAS check for the name mangling with added
      underline as a fallback, anyway. Hence there is no need for using
      a Fortran compiler. With this commit we now simply add another check
      for a LAPACK function to see whether it has an underline added and
      adapt the existing macro in config.h accordingly.
      
      Closes #184
      54ac7b4b
  10. Dec 17, 2019
  11. Nov 20, 2019
  12. Jun 18, 2019
  13. Jan 07, 2019
  14. Jun 07, 2018
  15. Jan 16, 2018
  16. Sep 14, 2017
  17. Aug 30, 2017
  18. Aug 25, 2017
  19. Aug 22, 2017
  20. Aug 18, 2017
    • Steffen Müthing's avatar
      [cmake] Add test for inline variables · 675ce5cc
      Steffen Müthing authored
      Inline variables are a C++17 feature that gives variables the same
      type of linkage as inline functions, which avoids object file bloat
      and linker problems.
      
      For us, this is mostly interesting in the context of constexpr
      variables like the partition sets provided in dune-grid: Right now,
      a separate copy of those objects is emitted by each translation unit,
      and those copies do not get merged by the linker. This has created
      problems in the past and forced us to place the variables in an
      anonymous namespace, which creates unique symbol names for each
      translation unit.
      
      With inline variables, the problem will eventually go away.
      675ce5cc
    • Steffen Müthing's avatar
  21. Aug 04, 2017
  22. May 24, 2017
    • Rene Milk's avatar
      [cmake] adds TBB discovery · 71e17653
      Rene Milk authored and Dominic Kempf's avatar Dominic Kempf committed
      usage: add_dune_tbb_flags(TARGETS)
      also adds appropriately defined HAVE_TBB to config.h
      
      (cherry picked from commit 36aec8e62786d436521220e6b86d43da061417c6)
      
      Conflicts:
      	cmake/modules/DuneCommonMacros.cmake
      	config.h.cmake
      71e17653
  23. May 16, 2017
  24. Sep 27, 2016
    • Jö Fahlke's avatar
      [cmake][Vc] Use the HAVE/ENABLE trick for Vc. · 53ee4035
      Jö Fahlke authored
      This solves a problem that is introduced by unconditionally setting
      `HAVE_VC=1` in config.h:
      
      If a compilation unit is compiled without the `-fabi-version=6` or similar
      then the compilers vector types (which are used by Vc under the hood if
      available) will mangle to the same string, irrespective of the number of lanes
      they actually use.  This makes certain overloaded function definitions in the
      Vc headers clash, since their only difference is whether they apply to
      e.g. AVX types (4 lanes) or SSE types (2 lanes).
      
      This is normally not a problem, since any program that uses Vc needs to have a
      call to `add_dune_vc_flags()` in `CMakeLists.txt`.  However, since I now want
      to put support for vectorized types into the `fmatrix.hh`, any compilation
      unit that uses a `FieldMatrix` will automatically include the Vc headers
      because `config.h` unconditionally sets `HAVE_VC=1`.
      
      Using the HAVE/ENABLE-trick makes sure that the value of `HAVE_VC` is in sync
      with the compilation flags.
      
      Note: I tried using `COMPILE_DEFINITION` for `ENABLE_VC=1` in
            `dune_register_package_flags()`, but that will always add
            `-DENABLE_VC=1` to the compiler command line, even when
            `add_dune_vc_flags()` hasn't been called for that target, and
            `dune_enable_all_packages()` isn't in use.  Using `COMPILE_OPTIONS`
            instead seems inappropriate, but does work.
      53ee4035
  25. Mar 22, 2016
  26. Mar 12, 2016
  27. Jan 22, 2016
  28. Dec 16, 2015
  29. Nov 26, 2015
  30. Nov 25, 2015
  31. Nov 23, 2015
  32. Oct 16, 2015
  33. Oct 14, 2015
Loading