-
Notifications
You must be signed in to change notification settings - Fork 35
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
base: main
Are you sure you want to change the base?
Conversation
c4a99c6
to
0ff790f
Compare
@@ -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); |
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.
It can be replaced with: if (ret != UMF_RESULT_ERROR_NOT_SUPPORTED) LOG_FATAL("...")
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.
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); |
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.
.
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.
Done.
@lukaszstolarczuk will you want to continue working on this PR? |
0ff790f
to
0b956cf
Compare
yes, done. |
0b956cf
to
2fb62b1
Compare
// found in #1287