Skip to content

Autotools build system to patch config.guess based on a range check#13186

Merged
tgamblin merged 1 commit intospack:developfrom
alalazo:fixes/patch_config_guess_marchs
Oct 12, 2019
Merged

Autotools build system to patch config.guess based on a range check#13186
tgamblin merged 1 commit intospack:developfrom
alalazo:fixes/patch_config_guess_marchs

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Oct 11, 2019

fixes #13196

The fix reverts the semantic meaning of this check to what was before #3206

@alalazo alalazo added platform-support bugfix Something wasn't working, here's a fix labels Oct 11, 2019
@lee218llnl
Copy link
Copy Markdown
Contributor

@alalazo for my education, what does the ":" range specification mean w.r.t. an arch?

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Oct 11, 2019

@lee218llnl Before #3206 archs were coarse grained, like aarch64, x86_64 etc. After that PR Spack knows architectures at a finer level of detail:

$ spack arch --known-targets
Generic architectures (families)
    aarch64  arm  ppc  ppc64  ppc64le  ppcle  sparc  sparc64  x86  x86_64

GenuineIntel - x86
    i686  pentium2  pentium3  pentium4  prescott

GenuineIntel - x86_64
    nocona  core2  nehalem  westmere  sandybridge  ivybridge  haswell  broadwell  skylake  mic_knl  skylake_avx512  cannonlake  cascadelake  icelake

AuthenticAMD - x86_64
    bulldozer  zen  piledriver  zen2  steamroller  excavator

IBM - ppc64
    power7  power8  power9

IBM - ppc64le
    power8le  power9le

The microarchitectures above can be organized in graphs representing "families". An open range like x86_64: means anything compatible with the x86_64 generic architecture. More info here and here.

Copy link
Copy Markdown
Contributor

@lee218llnl lee218llnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@tgamblin
Copy link
Copy Markdown
Member

Should we just keep a config.guess vendored with Spack and always add it? The upstream repository is here:

@mwkrentel
Copy link
Copy Markdown
Member

Yes, this patch fixes #13196 for me.
Thanks!

@tgamblin tgamblin merged commit f8a4a38 into spack:develop Oct 12, 2019
@alalazo alalazo deleted the fixes/patch_config_guess_marchs branch October 12, 2019 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Something wasn't working, here's a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoconf: something in spec.py breaks autoconf

4 participants