-
Notifications
You must be signed in to change notification settings - Fork 1
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
Wrong OpenMP linking with ifort #1
Comments
Hi, Hmm, looking into https://github.com/coderefinery/autocmake/blob/master/modules/omp.cmake#L54 is the CMake variable "${CMAKE_Fortran_COMPILER_VERSION}" always properly filled ? CMake identification of Fortran compilers version does not always work, that's why we have python macro for doing that. |
What CMake version are you using? |
@bast 3.10.3 |
And what flags do you get? |
The other one for the older versions of the Intel compiler: -openmp @miroi btw, what exactly does this bug affect? Are eigenvalues unaffected? Is it only the eigenvectors? And are all eigenvectors wrong? |
What confuses me here is that the OMP module is not used at all in this project. But perhaps you have added it in some other fork or local repository? |
Also I cannot reproduce it. On CMake above 3.4, it should not go into any of the ifs since it has support for Fortran OMP flags. |
@uihsnv see updated https://github.com/miroi/lapack-dsyevr-test/blob/master/README.rst . This bug affects eigenvectors; IMO, each DSYERV implementation should be checked. |
@bast Nope. I made no changes to this; I just cloned it and ran it as described in the README. |
generates the wrong OpenMP link options in the file:
It should be using -qopenmp, because I'm using an intel compiler of version 18.0.
This looks an issue with autocmake. The following file should take care of that, but is there some reason it isn't?
https://github.com/coderefinery/autocmake/blob/master/modules/omp.cmake
The text was updated successfully, but these errors were encountered: