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

Fix current Travis failures in next #2090

Merged
merged 3 commits into from
Sep 3, 2020
Merged

Fix current Travis failures in next #2090

merged 3 commits into from
Sep 3, 2020

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Sep 3, 2020

Fixes #2089

  • Fix (potential) problem due to change in PETSc 3.11
  • Change BLAS implementation for Fedora build
  • Fix issue when installing some python packages on Travis

Fixes #2089

This is necessary due to a change in PETSc 3.11:

> Previously the KSP Chebyshev implementation always did one more
> iteration than requested. For example -ksp_max_it 2 resulted in 3
> Chebyshev iterations. This has been corrected. Due to this correction
> your solver may seem to converge more slowely than it previous
> has. Note that the multigrid solvers (PCMG, PCGAMG, PCML) used by
> default Chebyshev (with 3 actual steps) in their smoother, thus the
> multigrid solvers will now have seemingly different convergence rates
> since they will now use only 2 actual steps. To reproduce previous
> behavior change the number of smoother iterations to match the
> previous actual amount, this can be done with for example
> -mg_levels_ksp_max_it 3 (or -prefix_mg_levels_ksp_max_it 3 if the KSP
> object has a prefix).

This was also the cause of #2034, which was fixed in #2051

We should be able to set the default value with `PCMGSetNumberSmooth`,
but this requires us to call `PCMGSetLevels` first, but we don't have
the information to do that when setting up the solver. We also can't
set `mg_levels_ksp_max_it` as a PETSc option in the solver, because
that needs to go to the `PetscLib` instance.

Therefore, we need to either set `mg_levels_ksp_max_it` in the tests,
or adjust the tolerance for the tests.
Some problem with OPENBLAS-OPENMP causing test results to be dependent
on number of OpenMP threads
This fixes an issue where setuptools or cython was using inconsistent
compiler and linker
@ZedThree ZedThree added bugfix small-change Changes less than 100 lines - should be quick to review labels Sep 3, 2020
Copy link
Contributor

@johnomotani johnomotani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, and tests pass! Thanks @ZedThree

@ZedThree ZedThree merged commit 108cdc3 into next Sep 3, 2020
@ZedThree ZedThree deleted the fix-fedora-flexiblas branch September 3, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix small-change Changes less than 100 lines - should be quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants