Skip to content

gcc minimum version needs increasing for x86 #324

Closed

Description

@loveshack

The gcc 4.7+ requirement in configure needs to be increased. I don't know when they were introduced, but -march=sandybridge and haswell aren't supported in gcc 4.8 (EL7).

Activity

  1. fgvanzee commented on Aug 20, 2019

    @fgvanzee
    Member

    Thanks, Dave. I'm fine with bumping the minimum gcc version to 4.8.

  2. fgvanzee commented on Aug 20, 2019

    @fgvanzee
    Member

    @loveshack Sorry, I misread your comment. I thought you were saying that the aforementioned flag syntax wasn't supported until version 4.8. I'll try to dig into this to see if I can find out when gcc switched their -march syntax.

  3. fgvanzee commented on Aug 20, 2019

    @fgvanzee
    Member

    Here's what I found in the gcc documentation:

    • As of gcc version 4.8.5, the syntax for -march was still using the awful corei7-avx, core-avx-i, core-avx2 labels.
    • As of gcc version 4.9.4, the syntax for -march had transitioned to accepting (and promoting the use of) sandybridge, ivybridge, haswell labels.

    So presumably the switchover happened sometime between those two versions.

    Whether we draw the line at 4.7, 4.8, or 4.9.x doesn't matter to me--they're all ancient. So I'm fine bumping the minimum required version to 4.9.4.

    What do you think, @devinamatthews?

  4. devinamatthews commented on Aug 20, 2019

    @devinamatthews
    Member

    This depends on whether you want to support system compilers or assume that people will get a newer version through some mechanism. For example, CentOS 7 is still using gcc 4.8.5.

  5. fgvanzee commented on Aug 20, 2019

    @fgvanzee
    Member

    Thanks, good point. I'm fine requiring those individuals to get a newer version if they want to compile BLIS.

  6. jdiamondGitHub commented on Aug 20, 2019

    @jdiamondGitHub
    Member
  7. devinamatthews commented on Aug 20, 2019

    @devinamatthews
    Member

    I tend to side with @fgvanzee because users will need somewhat up-to-date compilers (and assemblers!) in order to make use of the latest instruction set features and processor tunings anyways.

  8. jdiamondGitHub commented on Aug 20, 2019

    @jdiamondGitHub
    Member
  9. jdiamondGitHub commented on Aug 20, 2019

    @jdiamondGitHub
    Member
  10. devinamatthews commented on Aug 20, 2019

    @devinamatthews
    Member

    What about binutils? If ld doesn't know what vfmadd231pd is then you're hosed. But in any case I think the modifications needed to use an older gcc are pretty minor, most of the configuration automaticness is for people who need the helping hand.

  11. fgvanzee commented on Aug 20, 2019

    @fgvanzee
    Member

    Le sigh. I'm torn between trying to unconditionally help out users in tough spots with really old compilers and drawing a line so that those users apply the pressure needed to get their sysadmins to update their software (which is almost always the right answer then the software in question is older than 3-4 years).

    @jdiamondGitHub Version gcc 4.4 is over a decade old. If you really are stuck on software that old, man, I am really sorry. (In April 2009, BLIS did not exist. OpenBLAS likely did not exist, either--if it did, it was mere days old.) But at some point, we have to say, No, you may not compile BLIS on your Hewlett-Packard 486 desktop that you purchased from CompUSA in 1996. :)

    I'll spend some time thinking about whether there might be a hack (and it will be kinda ugly) to support any weird systems where binutils is up to snuff but gcc is "too told" by configure's standards. It would probably involve passing the gcc version information into the Makefile so that make can conditionally do something like s/-march=haswell/-march=core-avx2/g

  12. jdiamondGitHub commented on Aug 20, 2019

    @jdiamondGitHub
    Member
  13. jdiamondGitHub commented on Aug 20, 2019

    @jdiamondGitHub
    Member
  14. devinamatthews commented on Aug 20, 2019

    @devinamatthews
    Member

    "Professionally supported" as in you want to pay somebody money? If so, I think SUSE is probably the only other "business standard", but Ubuntu LTS releases are pretty easy to maintain.

  15. isuruf commented on Aug 20, 2019

    @isuruf
    Contributor

    @jdiamondGitHub, what's the glibc version on your system?

  16. 16 remaining items

  17. jeffhammond commented on Aug 21, 2019

    @jeffhammond
    Member
  18. jeffhammond commented on Aug 21, 2019

    @jeffhammond
    Member
  19. fgvanzee commented on Aug 21, 2019

    @fgvanzee
    Member

    Am I the only one who thinks the built-in assembler idea is kind of nuts? At what point is it okay to just require a more recent binutils?

  20. dnparikh commented on Aug 21, 2019

    @dnparikh
    Collaborator

    write a back-end for the assembly macro-language that I added to produce hex instruction codes

    Even better, we could starting writing BLIS in opcodes! ;)

  21. jdiamondGitHub commented on Aug 21, 2019

    @jdiamondGitHub
    Member
  22. jdiamondGitHub commented on Aug 21, 2019

    @jdiamondGitHub
    Member
  23. devinamatthews commented on Aug 22, 2019

    @devinamatthews
    Member

    @jdiamondGitHub from the few times I've installed gcc from source, I imagine that most of your problems are solved by running the contrib/download_prerequisites script before configuring. Of course this step is poorly documented and rightly should be part of the build system by default but oh well.

  24. jdiamondGitHub commented on Aug 22, 2019

    @jdiamondGitHub
    Member
  25. loveshack commented on Aug 22, 2019

    @loveshack
    ContributorAuthor
  26. loveshack commented on Aug 22, 2019

    @loveshack
    ContributorAuthor
  27. loveshack commented on Aug 22, 2019

    @loveshack
    ContributorAuthor
  28. jeffhammond commented on Aug 23, 2019

    @jeffhammond
    Member
  29. devinamatthews commented on Aug 6, 2020

    @devinamatthews
    Member

    So, I think this is actually fixed... but with the lovely color commentary it's hard to tell. Please reopen if that is not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions