Skip to content
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

prov/shm: add more error output #9344

Merged
merged 1 commit into from
Sep 18, 2023
Merged

prov/shm: add more error output #9344

merged 1 commit into from
Sep 18, 2023

Conversation

aingerson
Copy link
Contributor

When the shm provider fails to configure, there is no helpful output to let the user know what check failed. This adds some helpful messages.

When the shm provider fails to configure, there is no helpful output to let the user
know what check failed. This adds some helpful messages.

Signed-off-by: Alexia Ingerson <[email protected]>
[AC_MSG_ERROR([shm provider requested, but no CMA support found])])
AS_IF([test $atomics_happy -eq 0],
[AC_MSG_ERROR([shm provider requested, but no atomics support found])])
])
Copy link
Member

Choose a reason for hiding this comment

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

Could we drop the outer AS_IF() and just report something like "shm provider disabled: shm_open not found", etc.?

Even if enable-shm wasn't set, the reason for it being disabled is clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You got it, boss

Copy link
Member

@shefty shefty left a comment

Choose a reason for hiding this comment

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

thanks!

@shefty shefty merged commit e12fca9 into ofiwg:main Sep 18, 2023
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.

2 participants