Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small spack changes to cleanup spack process on HPC Clusters #133

Merged
merged 2 commits into from
May 23, 2024

Conversation

cameronrutherford
Copy link
Contributor

Merge request type

  • Resolves bug

Relates to

  • Spack configuration

This MR updates

  • Spack configuration

Summary

No specific issue being addressed here, just some quality of life changes to some of our spack scripts. This makes it so that the spack environment is created in a single line, and that there is no longer a module purge that is ran before config is loaded. This is helpful to prevent harmful environment modifications by our scripts where they might be unnecessary.

If these changes are ok, we can extend this to other clusters as needed. Many of the whitespace changes were automatically made by my editor, and we can change / revert as needed. We don't really have any bash linting configuration or developer guidelines surrounding those files...


# Use a directory based environment, and decorate command line
spack env create -d $SPACKENV $base/spack.yaml &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main change.... No longer are we running spack env create before a cp command, we just do it all in one line using spack native commands.

@cameronrutherford cameronrutherford changed the title Draft: Small spack changes to cleanup spack process on HPC Clusters Small spack changes to cleanup spack process on HPC Clusters Apr 23, 2024
@cameronrutherford
Copy link
Contributor Author

@jaelynlitz please review I think this is good to merge

Copy link
Contributor

@jaelynlitz jaelynlitz left a comment

Choose a reason for hiding this comment

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

Generally looks good, just some small changes requested 😄

buildsystem/spack/deception/env.sh Show resolved Hide resolved
buildsystem/spack/deception/env.sh Show resolved Hide resolved
buildsystem/spack/deception/env.sh Show resolved Hide resolved
@cameronrutherford
Copy link
Contributor Author

@jaelynlitz please re-review

@cameronrutherford cameronrutherford merged commit eb22e35 into develop May 23, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants