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

?vout expects a vector, so make sure to pass a vector #239

Merged
merged 3 commits into from
Feb 19, 2020

Conversation

dschwoerer
Copy link
Contributor

@dschwoerer dschwoerer commented Feb 19, 2020

Pull request purpose

Make arpack compatible with gcc 10

Detailed changes proposed in this pull request

replacing scalar variables with vectors by enclosing [] around it, as described in the porting guide

With these fixes, arpack compiles and the tests run as well with gcc 10.

@coveralls
Copy link

coveralls commented Feb 19, 2020

Pull Request Test Coverage Report for Build 1091

  • 12 of 12 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 73.218%

Totals Coverage Status
Change from base Build 951: 0.03%
Covered Lines: 16466
Relevant Lines: 22489

💛 - Coveralls

@sylvestre
Copy link
Contributor

@fghoussen wdyt? thanks

@sylvestre
Copy link
Contributor

@dschwoerer could you please also update the changelog? thanks!

CHANGES Outdated Show resolved Hide resolved
@fghoussen
Copy link
Collaborator

@sylvestre : not aware of that.

@dschwoerer : could understand it's a necessary change (which must be done) but to me, first, it's necessary to check if :

  • it does not break compilation with other compilers (icc/ifort/clang...) : did you check that ?

  • you add 1 or 2 other build in CI dedicated to test :

    1. build with gcc-10 (apt-get install gcc-10)

    2. build with clang (apt-get clang flang)

@mergify mergify bot merged commit 3dd2d5f into opencollab:master Feb 19, 2020
@dschwoerer
Copy link
Contributor Author

I tried icc/ifortran and make all check failed, but make ; make all; make check worked.

flang seems to be only for llvm 7, but fedora ships llvm 10. ubuntu:latest doesn't seem to have flang either (I tried apt-get update; apt-get install flang)

Will add an test with gcc-10, not sure how to do llvm ...

I noticed I only ported the serial version. The parallel isn't that hard to get compiling, but then some tests fail. As far as I understand [] creates a temporary array, which is fine for printing, but not for receiving (MPI) data. So that will need some more effort ...

@dschwoerer dschwoerer mentioned this pull request Feb 20, 2020
@fghoussen
Copy link
Collaborator

@dschwoerer : for gcc-10 you likely could use debian folowwing example

sudo docker create --name mobydick debian /bin/bash -c \
where I see gcc-10 packages (not tested). Fro flang/clang you may use debian another OS (ubuntu or whatever you are familiar with). Unfortunately, for icc/ifort/pgi not way to test with open-sourced CI...

bmwiedemann added a commit to bmwiedemann/openSUSE that referenced this pull request Jul 1, 2020
https://build.opensuse.org/request/show/816560
by user badshah400 + dimstar_suse
- Add arpack-ng-double-comparison.patch: Add a tolerance for
  testing float equivalence in TESTS/bug_79_double_complex.f;
  fixes build failure for i586 [gh#opencollab/arpack-ng#269].
- Add arpack-ng-gcc10.patch to fix build against GCC 10
  [gh#opencollab/arpack-ng#239, gh#opencollab/arpack-ng#245].
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.

4 participants