-
Notifications
You must be signed in to change notification settings - Fork 9
Flux plugin #5
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
Flux plugin #5
Conversation
…usage and add some more documentation about usage
grondo
left a comment
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.
@nickhrdy, I just did a quick first pass. Everything is looking pretty good to me!
I will try to do some actual testing with the plugin in the near future, but my time may be limited the next few days.
Nice work!
| @@ -0,0 +1,4 @@ | |||
| This file contains example programs that may serve useful when trying to | |||
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.
| This file contains example programs that may serve useful when trying to | |
| This directory contains example programs that may serve useful when trying to |
|
FYI - I can't get the mpibind plugin to work, it seems like parsing the |
|
BTW, I'm running under the flux-core ubuntu 20.04 docker image, which may be convenient for testing. Eventually you could set up a CI (Travis or GitHub workflow) which builds and tests |
|
@nickhrdy, let me know if you need any other help with Flux interfaces. I realize the docs are spotty for now so I'm willing to help in any way I can! |
Add flux plugin to mpibind repo. Currently the flux plugin is created by taking the mpibind.so file and wrapping that with the code that interfaces with flux. To use the plugin, you can specify the value of
initrcin the command. Note that the folder containing the plugin's .so file needs to be in the LD_LIBRARY_PATH.(e.g.
flux mini run -o initrc=mpibind.lua -N2 -n2 -c8 -g1 /bin/true).To change the mpibind bind input parameters, you can either use more -o flags on the command line
(e.g.
flux mini run -o initrc=mpibind.lua -o mpibind.smt=2 -N2 -n2 -c8 -g1 /bin/true) or with the conf variable in the lua script (e.g.conf = {smt = 1, greedy = 0, gpu_optim = 1}).The currently exposed parameters are: smt, greedy, gpu_optim, and disable. The ntasks, restrict_ids and restrict_type aren't exposed because they are set using from information provided by flux at runtime.
Things of note:
TODOs:
Waiting on #1
Closes #4