-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[ROCm]: Fix build from source failure with gcc14 and ROCm 6.3 #13779
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
[ROCm]: Fix build from source failure with gcc14 and ROCm 6.3 #13779
Conversation
👋 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 🚀 |
b30d04c
to
c041267
Compare
[edit][force push] Incorporate pre-commit hooks' formatting suggestions. |
Is this still needed? |
If so, can we rebase? |
This fixed the build for me against the current main branch w/o changes |
Thanks for confirming Christian ( @paralin ). Seems it's still required Lu ( @houseroad ). |
Solves vllm-project#13777 See vllm-project#13777 Fixes build from source failures when building for ROCm. Signed-off-by: Arjun Kathuria <arjun.kathuria8@gmail.com>
c041267
to
9862d40
Compare
Nevermind, had some time at hand, rebased. |
Hi Lu ( @houseroad ), can we merge this? |
Looks fine to me. Let's check to see all the tests pass. |
// hip-clang std::clamp __glibcxx_assert_fail host function when building on | ||
// Arch/gcc14. The following replaces std::clamp usage with similar logic | ||
// dst = std::clamp(dst, i8_min, i8_max); | ||
dst = (dst < i8_min) ? i8_min : (dst > i8_max) ? i8_max : dst; |
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.
nit: dst = std::min(i8_max, max(dst, i8_min))
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.
nit: dst = std::min(i8_max, max(dst, i8_min))
Suggest not to change to use std::min and std::max, as this would leads more comparison in average, and is less efficient: I have commented/suggested the same in the PR ( pytorch/pytorch#127812 ) in PyTorch when we first addressed this type of issues:
This pure "<" with ">" comparison is also align with what the clamp's original's documentation.
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.
Looks good.
…roject#13779) Signed-off-by: Arjun Kathuria <arjun.kathuria8@gmail.com>
Fixes build from source failures when building for ROCm.
See #13777 for issue description
Solves #13777