Repository navigation
UCT/CUDA: Added wrappers for nvml functions. - #10680
Merged
Merged
Conversation
rakhmets
force-pushed
the
topic/nvml-wrap
branch
2 times, most recently
from
May 12, 2025 12:59
84cc5db to
3dba04c
Compare
rakhmets
marked this pull request as ready for review
May 12, 2025 12:59
rakhmets
force-pushed
the
topic/nvml-wrap
branch
6 times, most recently
from
May 13, 2025 10:32
0a3ddeb to
70ddc1a
Compare
iyastreb
reviewed
May 21, 2025
iyastreb
previously approved these changes
May 21, 2025
brminich
reviewed
May 28, 2025
brminich
reviewed
Jun 8, 2025
| UCT_CUDA_NVML_WRAP_DECL(_func, UCS_FUNC_DEFINE_ARGS(__VA_ARGS__)) \ | ||
| { \ | ||
| ucs_status_t _status; \ | ||
| pthread_mutex_lock(&uct_cuda_nvml_mutex); \ |
Contributor
There was a problem hiding this comment.
do we need to protect every nvml call, not just init?
Contributor
Author
There was a problem hiding this comment.
That's a workaround for hangs in NVML library. I'm not sure if nvmlInit is the only one with a thread safety issue.
Contributor
There was a problem hiding this comment.
i mean it is not thread safe, but can be used from different threads using different UCP contexts. Would not be that an issue?
Contributor
Author
There was a problem hiding this comment.
Oh, I see the question. Every NVML call is guarded by the mutex in this implementation. Except, nvmlShutdown.
brminich
previously approved these changes
Jun 26, 2025
tvegas1
previously approved these changes
Jul 7, 2025
Contributor
|
@rakhmets can you pls squash? |
brminich
approved these changes
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Added wrappers for nvml functions.
Why?
To handle the lack of nvml functions in the dynamically loaded library.