-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Standardize UCX config separator to -
#5539
Standardize UCX config separator to -
#5539
Conversation
Some of the UCX configurations use `_` whereas others use `-`. This is confusing so we now standardize everything to `-`. This also fixes an inconsistency from dask#5526, where configuration files used `create-cuda-context`, but the configuration read was `create_cuda_context`.
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.
Thanks @pentschev. In general I'm in favor of this change as it's more consistent with the naming convention of other configuration values. I am wondering if this makes a practical difference as my current understanding is our configuration system will treat -
and _
the same. From https://docs.dask.org/en/stable/configuration.html#directly-within-python:
Note that the set function treats underscores and hyphens identically. For example, dask.config.set({'scheduler.work-stealing': True}) is equivalent to dask.config.set({'scheduler.work_stealing': True}).
Agreed, it shouldn't make any functional difference but will be consistent throughout our codebase. @pentschev any more additional thoughts ? |
Yes, and no. The reason I wanted to do this is because we may want to get the current/default configs with |
To be clearer with an example, this is what we get before this PR: In [1]: import dask, distributed
In [2]: dask.config.get("distributed.comm.ucx")
Out[2]:
{'cuda_copy': None,
'tcp': None,
'nvlink': None,
'infiniband': None,
'rdmacm': None,
'net-devices': None,
'reuse-endpoints': None,
'create-cuda-context': None} See how |
I'm attempting to resolve the gpuCI test that failed in #5540 . |
rerun tests |
Ah I see, thank you for the clarification. I've not had a chance to think too deeply about it yet, but I wonder if the |
Thanks @jrbourbeau , I had missed that utility. I agree, it seems useful and I'll make sure to use it in Dask-CUDA to prevent the issue I mentioned. For now, I think we could merge this and make it consistent anyway, there should be no downside in doing so. |
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.
Yep, agreed -- thanks @pentschev
Thanks @jrbourbeau and @quasiben ! |
Some of the UCX configurations used `_` whereas others used `-` as a separator. This has been standardized in dask/distributed#5539, and this updates Dask-CUDA to the new standard. Authors: - Peter Andreas Entschev (https://github.com/pentschev) Approvers: - Mads R. B. Kristensen (https://github.com/madsbk) URL: #806
Some of the UCX configurations use
_
whereas others use-
. This is confusing so we now standardize everything to-
. This also fixes an inconsistency from #5526, where configuration files usedcreate-cuda-context
, but the configuration read wascreate_cuda_context
.