Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to reduce compilation overhead #45

Merged
merged 1 commit into from
May 3, 2017
Merged

Conversation

ddemidov
Copy link
Owner

@ddemidov ddemidov commented May 3, 2017

by disabling unused components in runtime interface. This should help with 'compiler is out of heap space' kinds of errors during compilation with MSVC.

For now it is possible to disable

  • multicolor_gauss_seidel,
  • parallel_ilu0,
  • spai1, and
  • chebyshev

relaxation types by correspondingly defining

  • AMGCL_RUNTIME_DISABLE_MULTICOLOR_GS,
  • AMGCL_RUNTIME_DISABLE_PARALLEL_ILU0,
  • AMGCL_RUNTIME_DISABLE_SPAI1, and
  • AMGCL_RUNTIME_DISABLE_CHEBYSHEV,

preprocessor definitions.

CC @RiccardoRossi.

@ddemidov ddemidov merged commit e3b8e8c into master May 3, 2017
@ddemidov ddemidov deleted the decrease-compile-mem branch May 3, 2017 19:51
@codecov-io
Copy link

codecov-io commented May 3, 2017

Codecov Report

Merging #45 into master will decrease coverage by 0.03%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
- Coverage   82.47%   82.44%   -0.04%     
==========================================
  Files          71       71              
  Lines        4366     4368       +2     
  Branches      742      742              
==========================================
  Hits         3601     3601              
- Misses        707      709       +2     
  Partials       58       58
Impacted Files Coverage Δ
tests/test_solver.hpp 98.52% <ø> (ø) ⬆️
amgcl/runtime.hpp 96.24% <0%> (-0.73%) ⬇️
amgcl/relaxation/runtime.hpp 89.04% <75%> (-1.24%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0ae2165...0ac7023. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants