-
Notifications
You must be signed in to change notification settings - Fork 909
UCX/PML/SPML/OSC: fix compiler warnings #9997
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
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.
just minor comments
void *fetch, | ||
void *target, | ||
uint64_t *prev, | ||
uint64_t cond, | ||
uint64_t value, | ||
size_t size, | ||
int pe) |
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.
strange alignment
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.
fixed
8f9f2ea
to
9397261
Compare
The IBM CI (XL) build failed! Please review the log, linked below. Gist: https://gist.github.com/cc048d76221442339dcc3d1675fc5901 |
bot:ibm:retest |
opal/mca/common/ucx/common_ucx.c
Outdated
/* mlx5_0:1 */ | ||
ret = sscanf(device_name, "%m[^:]%*d", &ib_device_name); | ||
ret = sscanf(device_name, ib_device_name_fmt, &ib_device_name); | ||
free(ib_device_name_fmt); |
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.
maybe ib_device_name_fmt could be fixed size on the stack, so no need to release
opal/mca/common/ucx/common_ucx.c
Outdated
/* "# resource 6 : md 5 dev 4 flags -- rc_verbs/mlx5_0:1" */ | ||
opal_asprintf(&rsc_name_fmt, | ||
"# resource %%*d : md %%*d dev %%*d flags -- %%%u[^/ \n\r]/%%%u[^/ \n\r]", | ||
NAME_MAX-1, NAME_MAX-1); |
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.
minor: space around minus operator
opal/mca/common/ucx/common_ucx.c
Outdated
@@ -298,17 +302,17 @@ OPAL_DECLSPEC opal_common_ucx_support_level_t opal_common_ucx_support_level(ucp_ | |||
/* Print ucx transports information to the memory stream */ | |||
ucp_context_print_info(context, stream); | |||
|
|||
/* "# resource 6 : md 5 dev 4 flags -- rc_verbs/mlx5_0:1" */ | |||
opal_asprintf(&rsc_name_fmt, |
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.
can use opal_snprintf
here as well then?
Signed-off-by: Boris Karasev <[email protected]>
c45575d
to
334c6ec
Compare
Fixes #9984