Skip to content

Fix CNL version detection#12207

Merged
tgamblin merged 2 commits intospack:developfrom
adamjstewart:fixes/crayos_version_detection
Aug 3, 2019
Merged

Fix CNL version detection#12207
tgamblin merged 2 commits intospack:developfrom
adamjstewart:fixes/crayos_version_detection

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

@adamjstewart adamjstewart commented Jul 31, 2019

Fixes #12187

With this PR, Spack successfully detects the Cray OS version on Blue Waters:

$ spack arch
cray-cnl5-interlagos

Copy link
Copy Markdown
Member

@tgamblin tgamblin left a comment

Choose a reason for hiding this comment

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

@adamjstewart: I'm tempted to do a smaller PR and only add checking for /etc/clerelease to get this working on Blue Waters. I'd rather NOT maintain the code for the environment variables as they're pretty much dead now (see here). XT is on the way out, and CRAYOS_VERSION is set by the PE, not the OS.

@chuckatkins: what do you think?

@chuckatkins
Copy link
Copy Markdown

XT is long gone, that was mainly for compatibility with older machines that were still around a few years ago.

I think the detection should centered on the pe though since that's really why there's any cray specific logic and what the whole cray module system is tied to. The only reason to even bother with the cnl/cle version is usually just a sanity check that the craype environment is being used on a cray. In that sense the cle version isn't really needed for anything. Tying "platform=cray" to the pe has the advantage of being able to treat the fronted like normal Linux and directly use the compilers while the pe wrappers are used for compute nodes.

All that is likely a bigger shift though that will need some more thinking through. I agree that a minimal diff to fix the blue waters issue is ideal here and separate from the bigger conversation on how spack sees "cray".

@adamjstewart adamjstewart force-pushed the fixes/crayos_version_detection branch from 2bf0739 to 6b5d2e0 Compare August 3, 2019 17:33
@adamjstewart adamjstewart marked this pull request as ready for review August 3, 2019 17:36
@adamjstewart
Copy link
Copy Markdown
Member Author

Okay, I left out all of the environment variable checks this time and added unit tests. This should be ready for a final review.

@tgamblin tgamblin merged commit 98605bb into spack:develop Aug 3, 2019
@adamjstewart adamjstewart deleted the fixes/crayos_version_detection branch August 3, 2019 19:16
dev-zero pushed a commit to dev-zero/spack that referenced this pull request Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spack broken on Blue Waters

3 participants