-
Notifications
You must be signed in to change notification settings - Fork 441
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
UCT/IB/MLX5/DV: device memory allocation debug logs #10495
base: master
Are you sure you want to change the base?
Conversation
uct_ib_device_name(&md->dev), alloc_name, address, | ||
UCS_PTR_BYTE_OFFSET(address, dm_attr.length), dm_attr.length, dm, |
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.
do we really need to print both end address and length? IMO length is enough
@@ -2068,6 +2068,13 @@ uct_ib_mlx5_devx_device_mem_alloc(uct_md_h uct_md, size_t *length_p, | |||
*length_p = dm_attr.length; | |||
*address_p = address; | |||
*memh_p = memh; | |||
|
|||
ucs_debug("%s: allocated device memory (%s) %p..%p length %zu, dm %p, mkey " |
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.
pls remove the ,
uct_ib_device_name(&md->super.dev)); | ||
|
||
#else | ||
ucs_debug("UCX was compiled without --with-dm configuration"); |
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.
IMO this debug log is not needed as we don't usually have such messages, and we can know the compilation defines from ucx_info -b
ucs_debug("%s: KSM over device memory is supported", | ||
uct_ib_device_name(&md->super.dev)); |
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.
- "%s: device memory allocation is supported"
- move this log after line 2167? we could get here also if uct_ib_mlx5_devx_reg_atomic_key failed
What?
Adding missing debug logs to IB device memory allocations.
Why?
Getting a better indication of whether device memory was used in runtime and the cause.