-
-
Couldn't load subscription status.
- Fork 10.8k
[ROCm][Fix] Fix rocm build caused by #23791 #23847
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
Signed-off-by: charlifu <charlifu@amd.com>
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.
Code Review
This pull request fixes a build issue on ROCm caused by an unused variable. The proposed change adds [[maybe_unused]] to suppress the compiler warning. While this works, a cleaner solution would be to remove the unused variable entirely, as it appears to be dead code. I've suggested this change.
csrc/cache_kernels.cu
Outdated
|
|
||
| const bool is_active_split = (split_start < tot_slots); | ||
| const bool is_last_split = (split_end == tot_slots); | ||
| [[maybe_unused]] const bool is_last_split = (split_end == tot_slots); |
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.
|
@charlifu if the variable is not used, you can safely delete it. |
Signed-off-by: charlifu <charlifu@amd.com>
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.
LGTM, thanks for the work!
…#23847) Signed-off-by: charlifu <charlifu@amd.com>
…#23847) Signed-off-by: charlifu <charlifu@amd.com>
The compiler is rejecting an unused var.