-
Notifications
You must be signed in to change notification settings - Fork 49
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
shell: add hwloc.restrict
option to restrict HWLOC_XMLFILE
to assigned resources
#5944
Conversation
d1e25d3
to
3d44334
Compare
doc/man1/flux-shell.rst
Outdated
@@ -457,6 +457,12 @@ plugins include: | |||
Note that this option will also unset ``HWLOC_COMPONENTS`` since presence | |||
of this environment variable may cause hwloc to ignore ``HWLOC_XMLFILE``. | |||
|
|||
.. option:: hwloc.xmlfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option:: hwloc.restrict (?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks!
3d44334
to
753a7f1
Compare
A bunch of warnings like this, but no impact to functionality as far as I can tell. Shows up on |
I'll go ahead and add MWP here as well. Thanks @wihobbs! |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5944 +/- ##
==========================================
- Coverage 83.31% 83.31% -0.01%
==========================================
Files 515 515
Lines 83344 83352 +8
==========================================
+ Hits 69441 69442 +1
- Misses 13903 13910 +7
|
Problem: The HWLOC_XMLFILE provided by the hwloc.xmlfile job shell option is not restricted to the resources available to the job, but in some circumstances this would be useful. Add a hwloc.restrict option that, when used with hwloc.xmlfile, restricts the HWLOC_XMLFILE to the current process binding.
Problem: No test in the testsuite checks that the -o hwloc.restrict job shell option works. Add a test to t2619-job-shell-hwloc.t.
Problem: The `hwloc.restrict` job shell option is not documented. Document it in flux-shell(1) and the submission cli manpages.
753a7f1
to
27204b3
Compare
This PR adds the
hwloc.restrict
job shell option as described in #5934, along with a trivial test and docs.