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

Feature/uberenv env #481

Closed
wants to merge 10 commits into from
Closed

Feature/uberenv env #481

wants to merge 10 commits into from

Conversation

adrienbernede
Copy link
Member

This PR is demonstration of how Uberenv can use spack environments.
This changes nothing to Umpire workflow, the only changes are in Uberenv itself, and in spack-configs which is now a submodule.

@adrienbernede
Copy link
Member Author

LGTM

@adrienbernede
Copy link
Member Author

LGTM

@@ -108,7 +108,7 @@ then
$cmake_exe \
-C ${hostconfig_path} \
${project_dir}
if ! $cmake_exe --build . -j; then
if ! $cmake_exe --build . -j 12; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure I understand this. Can you elaborate? Why "12"?

Copy link
Member Author

Choose a reason for hiding this comment

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

First the main drawback: 12 is a value "optimized" for quartz.
"-j" maximize the number of threads to use. However, on quartz, we share a node for all builds. Throwing so many threads was counter productive, and could even have lead to shared memory issues. By reducing the maximum number of threads, I got the CI on quartz to run faster, and didn’t have to increase the allocation time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Quartz nodes have 2 sockets of 18 cores. Each cores supports 2 hyperthreads, and the 18 cores are organized by groups of 6 (sort of). Hence the 12 value. However, actually pining those threads to cores is again not optimal (per my tests). So I leave the thread orchestration to the OS.

@adrienbernede
Copy link
Member Author

LGTM

@davidbeckingsale
Copy link
Member

Hey @adrienbernede - is this something we should clean up and get merged?

@adrienbernede
Copy link
Member Author

adrienbernede commented Sep 8, 2021

@davidbeckingsale I used Umpire as a pilot project to test using Uberenv with spack environment.
The corresponding branch in uberenv has been waiting for review for a long time, and then it was decided to maintain also the old spack-patching mechanism.
Since then, I haven't had much time to clean and test this on Uberenv side.

Also, you can see this branch has only a few changes outside of the uberenv.py script. This script would now be provided by submodule, so updating this branch would mean basically emptying it.

I will close it, and we could recreate one from the appropriate branch in Uberenv when we are ready to dedicate some time to it.

@davidbeckingsale
Copy link
Member

Thanks for the explanation!

@adrienbernede adrienbernede deleted the feature/uberenv-env branch May 23, 2022 09:30
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.

3 participants