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

Compilation errors? #3

Open
dspoel opened this issue Jul 23, 2022 · 2 comments
Open

Compilation errors? #3

dspoel opened this issue Jul 23, 2022 · 2 comments

Comments

@dspoel
Copy link

dspoel commented Jul 23, 2022

Hi, I am trying to run your test on my machine with the latest OpenBlas (0.3.20) installed. However there seems to be a compilation error. Any clue?

[ 33%] Building Fortran object src/CMakeFiles/dsyevr_check.dir/dsyevr_check.F90.o
/home/spoel/tmp/lapack-dsyevr-test/src/dsyevr_check.F90:214:58:

  208 |    CALL DSYTRD(UPLO,N,ArTemp,LRA,DIAG,OFFDIAG(:N-1),RFLCT,WORKDUM,-1,IERR)
      |                                                          2
......
  214 |    CALL DSYTRD(UPLO,N,ArTemp,LRA,DIAG,OFFDIAG(:N-1),RFLCT,WORK,LLWORK,IERR)
      |                                                          1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
/home/spoel/tmp/lapack-dsyevr-test/src/dsyevr_check.F90:249:29:

  238 |                M,EIG,VEC,LRV,IDUM,WORKDUM,-1,IWORKDUM,-1,IERR)
      |                             2
......
  249 |                M,EIG,VEC,LRV,ISUPPZ,WORK,LLWORK,IWORK,LILWORK,IERR)
      |                             1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
/home/spoel/tmp/lapack-dsyevr-test/src/dsyevr_check.F90:159:29:

  148 |                M,EIG,VEC,LRV,IDUM,EIG,-1,IWORKDUM,-1,IERR)
      |                             2
......
  159 |                M,EIG,VEC,LRV,ISUPPZ,WORK,LLWORK,IWORK,LILWORK,IERR)
      |                             1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
make[2]: *** [src/CMakeFiles/dsyevr_check.dir/build.make:74: src/CMakeFiles/dsyevr_check.dir/dsyevr_check.F90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/dsyevr_check.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
@dspoel
Copy link
Author

dspoel commented Jul 23, 2022

This was with this gfortran version:

% gfortran --version
GNU Fortran (Spack GCC) 10.2.0

@miroi
Copy link
Owner

miroi commented Jul 23, 2022

Oh, you have the newest gfortran, which now issues errors. Previously, with lower gfortran versions, rank mismatches were labeled as mere warnings. What to do ? Please check gfortran flags if there is any forgiving rank mismatch, if not, ask gfortran people for help.

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

No branches or pull requests

2 participants