Skip to content

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

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

karasevb
Copy link
Member

Fixes #9984

Copy link
Contributor

@hoopoepg hoopoepg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just minor comments

Comment on lines 328 to 334
void *fetch,
void *target,
uint64_t *prev,
uint64_t cond,
uint64_t value,
size_t size,
int pe)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange alignment

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@karasevb karasevb force-pushed the pml_ucx_warnings_fix branch from 8f9f2ea to 9397261 Compare February 10, 2022 05:52
@ibm-ompi
Copy link

The IBM CI (XL) build failed! Please review the log, linked below.

Gist: https://gist.github.com/cc048d76221442339dcc3d1675fc5901

@karasevb
Copy link
Member Author

bot:ibm:retest

@karasevb
Copy link
Member Author

@brminich @yosefe

/* 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);
Copy link
Contributor

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

/* "# 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);
Copy link
Contributor

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

@@ -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,
Copy link
Member

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?

@karasevb karasevb force-pushed the pml_ucx_warnings_fix branch from c45575d to 334c6ec Compare February 10, 2022 11:30
@awlauria awlauria merged commit 34685a2 into open-mpi:master Feb 10, 2022
@karasevb karasevb deleted the pml_ucx_warnings_fix branch February 11, 2022 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings on master branch: ucx related
6 participants