GithubHelp home page GithubHelp logo

Comments (5)

parcollet avatar parcollet commented on August 16, 2024

Do you mean that in FindBuildF2pyModule.cmake line 38
... --f90exec=${CMAKE_Fortran_COMPILER} ...
CMAKE_Fortran_COMPILER is wrong ?
So cmake does not detect correctly the fortran compiler on your machine ??

What if we put gnu95 as a standard and people want to compile with ifort ?

from triqs_0.x.

aichhorn avatar aichhorn commented on August 16, 2024

The CMAKE_Fortran_COMPILER is correct in the module, the problem is that one should not use the --f90exec flag with specifying just the F90 executable. That leads to wrong linking in many cases.
The --fcompiler is the better flag, but you do not give the executable, but the 'vendor'. The two flags behave differently. The point is, if you put just --f90exec=ifort, then the .so is compiled with ifort, linked to some gfortran libraries.
One could introduce a variable, like CMAKE_F2PY_vendor, that specifies the vendor and is set to gnu95 by default. If wanted, can be changed by hand. Detection of the possible values of -fcompiler can be done by
f2py -c --help-fcompiler

from triqs_0.x.

mferrero avatar mferrero commented on August 16, 2024

@aichhorn: is there a way to reproduce this issue? I would like to avoid the vendor flag. Are you sure the fact that there are links to libgfortran is not a consequence of linking to lapack?

from triqs_0.x.

aichhorn avatar aichhorn commented on August 16, 2024

Right now, I cannot reproduce this issue myself either. I tried all possible combinations of gfortran and ifort, with lapack and without, and everything worked out fine. This seems to be a well hidden problem in the f2py linking procedure that I don't understand.
(I tried it for the modules vertex.so and hubbard_I.so) We could close this issue, if nobody else is having this problem.

from triqs_0.x.

mferrero avatar mferrero commented on August 16, 2024

OK, let's close the issue for now and if ever the problem appears again we can still reopen it...

from triqs_0.x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.