Skip to content

Deprecate Cray platform, based on PE modules#43796

Merged
haampie merged 11 commits intospack:developfrom
alalazo:deprecation/cray-platform
May 30, 2024
Merged

Deprecate Cray platform, based on PE modules#43796
haampie merged 11 commits intospack:developfrom
alalazo:deprecation/cray-platform

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Apr 23, 2024

This PR discontinues support for the Cray platform based on module file inspection.

It also removes any mention of platform=cray both in core Spack and in the packages.

@becker33

@spackbot-app spackbot-app bot added architecture core PR affects Spack core functionality tests General test capability(ies) labels Apr 23, 2024
@alalazo alalazo added this to the v0.22.0 milestone Apr 23, 2024
@tgamblin tgamblin modified the milestones: v0.22.0, v0.23.0 Apr 29, 2024
@alalazo alalazo force-pushed the deprecation/cray-platform branch from 1aac5b0 to 6b453e1 Compare May 23, 2024 06:16
@tgamblin
Copy link
Copy Markdown
Member

Per @haampie we should wait until Piz Daint is no longer online. @bcumming any opinions?

@bcumming
Copy link
Copy Markdown

Per @haampie we should wait until Piz Daint is no longer online. @bcumming any opinions?

Thank you for checking @tgamblin. Piz Daint isn't a blocker for you to make this change.

Piz Daint will soon be decommissioned very soon, and the software stack provided on the system has been stable for a long time now. So the last release of Spack, or the current head of develop will be sufficient.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented May 29, 2024

@spackbot run pipeline

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented May 29, 2024

I've started that pipeline for you!

@haampie
Copy link
Copy Markdown
Member

haampie commented May 29, 2024

@becker33 can do the honors of merging this ;)

@haampie
Copy link
Copy Markdown
Member

haampie commented May 29, 2024

There are still various packages dynamically referring to platform=cray

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented May 29, 2024

Let me check for them. I just checked platform=cray, I'll go for cray too 🙂

@haampie
Copy link
Copy Markdown
Member

haampie commented May 29, 2024

Look for \bcray\b. I've submitted #44437 separately, but fine to include it here.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented May 29, 2024

I've submitted #44437 separately, but fine to include it here.

I also added here, protected by:

if sys.platform != "win32":

since that seemed the intent?

@alalazo alalazo force-pushed the deprecation/cray-platform branch from 02bbe3d to 729c0ae Compare May 29, 2024 18:44
@spackbot-app spackbot-app bot added commands compilers documentation Improvements or additions to documentation labels May 30, 2024
@haampie haampie merged commit f242e0f into spack:develop May 30, 2024
@alalazo alalazo deleted the deprecation/cray-platform branch May 30, 2024 12:43
Copy link
Copy Markdown
Member

@becker33 becker33 left a comment

Choose a reason for hiding this comment

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

I think we need to also deprecate the wrappers variant in the cray-mpich package, or otherwise ensure it's always on (maybe make it sticky and a conflict for ~wrappers) since the ~wrappers behavior supports the modules-based system only.

_xc_craype_dir = "/opt/cray/pe/cdt"


def slingshot_network():
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not quite sure where this should move, but it should move somewhere else. We shouldn't have a platforms/cray module without a Cray platform class in it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I kind of agree. I left this here because the function is used in a few packages, so if we move it we might break custom repos. If it's fine to do so, I totally agree we should move it.

Another alternative is to leave a wrapper here with a warning saying the function moved elsewhere.

Comment on lines +278 to +284
# These do not exist on Windows.
# Enable only for supported target platforms.

if sys.platform != "win32":
filter_compiler_wrappers(
"h5cc", "h5hlcc", "h5fc", "h5hlfc", "h5c++", "h5hlc++", relative_root="bin"
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this supposed to be part of this PR or separate?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Part of this PR, it's just that the Cray part went in just before this in #44437

teaguesterling pushed a commit to teaguesterling/spack that referenced this pull request Jun 15, 2024
Remove support for `cray` as a separate platform.

Any platform previously detected as `cray` is now detected as `linux`.

Users who still need platform=cray have to stick to Spack 0.22
hariharan-devarajan pushed a commit to hariharan-devarajan/spack that referenced this pull request Jul 10, 2024
Remove support for `cray` as a separate platform.

Any platform previously detected as `cray` is now detected as `linux`.

Users who still need platform=cray have to stick to Spack 0.22
jamessmillie pushed a commit to Tech-XCorp/spack that referenced this pull request Jul 10, 2024
remove platform=cray (spack#43796)

Remove support for `cray` as a separate platform.

Any platform previously detected as `cray` is now detected as `linux`.

Users who still need platform=cray have to stick to Spack 0.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants