-
Notifications
You must be signed in to change notification settings - Fork 212
gpu: mount by-path directory #1371
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
Conversation
57c2d80 to
3c44bba
Compare
|
Apparently, I hadn't added the tests for bypath.go when I created the initial commit. |
Codecov Report
@@ Coverage Diff @@
## main #1371 +/- ##
==========================================
+ Coverage 50.56% 50.89% +0.32%
==========================================
Files 44 44
Lines 4952 4985 +33
==========================================
+ Hits 2504 2537 +33
Misses 2302 2302
Partials 146 146
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
eero-t
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.
IMHO code would be more readable if all byPath, Bypath and bypath prefixes would be changed just to path:
$ sed -i \
-e 's/by[Pp]ath\([a-zA-Z]\)/path\1/g' \
-e 's/By[Pp]ath\([a-zA-Z]\)/Path\1/g' \
$(git grep -il 'bypath[a-z]')
And copyright year in the new Go files should be 2023, not 2022.
Otherwise seems fine to me.
6310155 to
e892112
Compare
|
New version with nicer local variable names looks IMHO much more readable! I.e. my comments are addressed. |
e892112 to
49c5d0a
Compare
mythi
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.
looks great to me, thanks!
|
Any further notes/comments? |
|
Just make sure your changes to it do not conflict with ones in Harri's PR #1369. |
49c5d0a to
210ba2c
Compare
I modified it to check in plugin creation for existence of the by-path dir. If it doesn't exist, it won't try to find the mounts. But if it does exist, it will warn about failures constantly. |
Ok, looks good! Fakedev can indeed skip things that are used only by (real) workloads, and do not impact GPU plugin behavior (e.g. what resources it provides). |
oneCCL requires the /dev/dri/by-path folder to be available to create a mapping between GPUs. Signed-off-by: Tuomas Katila <[email protected]>
210ba2c to
5ac43f8
Compare
oneCCL requires the /dev/dri/by-path folder to be available to create a mapping between GPUs.