Skip to content

Remove redundant asserts in umfMemspace*Init #1290

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukaszstolarczuk
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk commented Apr 28, 2025

// found in #1287

@@ -105,7 +105,6 @@ static void umfMemspaceHighestBandwidthInit(void) {
LOG_DEBUG(
"Creating the highest bandwidth memspace failed with the error: %u",
ret);
assert(ret == UMF_RESULT_ERROR_NOT_SUPPORTED);
Copy link
Contributor

Choose a reason for hiding this comment

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

It can be replaced with: if (ret != UMF_RESULT_ERROR_NOT_SUPPORTED) LOG_FATAL("...")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -101,7 +101,6 @@ static void umfMemspaceLowestLatencyInit(void) {
LOG_DEBUG(
"Creating the lowest latency memspace failed with the error: %u",
ret);
assert(ret == UMF_RESULT_ERROR_NOT_SUPPORTED);
Copy link
Contributor

Choose a reason for hiding this comment

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

.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@bratpiorka
Copy link
Contributor

@lukaszstolarczuk will you want to continue working on this PR?

@lukaszstolarczuk
Copy link
Contributor Author

@lukaszstolarczuk will you want to continue working on this PR?

yes, done.

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.

4 participants