-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[MISC][AMD] Add unused annotation to rocm kernel file #17097
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: Lu Fang <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
Just curious: Can we just delete the variable? |
Yes, we can. I think it's better to add the same compiler flag to the AMD build. cc: @hongxiayang |
@@ -150,7 +150,7 @@ __global__ void LLGemm1_kernel(const scalar_t* in_a, const scalar_t* in_b, | |||
colB_elem4w = bf4[threadid * 4 + 3]; | |||
|
|||
scalar2_t Af2; | |||
scalar2_t Bf2; | |||
[[maybe_unused]] scalar2_t Bf2; |
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.
@houseroad Good catch (thumb up to the tool which found this). It looks to me that it is safe to remove the unused variable.
@WoosukKwon vllm should enable this tool in the pre-commit check
@@ -150,7 +150,7 @@ __global__ void LLGemm1_kernel(const scalar_t* in_a, const scalar_t* in_b, | |||
colB_elem4w = bf4[threadid * 4 + 3]; | |||
|
|||
scalar2_t Af2; | |||
scalar2_t Bf2; | |||
[[maybe_unused]] scalar2_t Bf2; |
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.
[[maybe_unused]] scalar2_t Bf2; |
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.
cc @charlifu
what is the flag? |
Something like unused-variable |
…7097) Signed-off-by: Lu Fang <[email protected]>
…7097) Signed-off-by: Lu Fang <[email protected]>
…7097) Signed-off-by: Lu Fang <[email protected]> Signed-off-by: Agata Dobrzyniewicz <[email protected]>
…7097) Signed-off-by: Lu Fang <[email protected]> Signed-off-by: Mu Huai <[email protected]>
…7097) Signed-off-by: Lu Fang <[email protected]> Signed-off-by: Yuqi Zhang <[email protected]>
…7097) Signed-off-by: Lu Fang <[email protected]> Signed-off-by: minpeter <[email protected]>
Bf2 is not used, and at Meta we force the compiler flag, no unused var.
Need to tag it to make the compilation.