Skip to content
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

Fix: Build error seen on Power Architecture #10421

Merged
merged 24 commits into from
Nov 19, 2024

Conversation

mikejuliet13
Copy link
Contributor

@mikejuliet13 mikejuliet13 commented Nov 18, 2024

The issue in the vLLM library involves the introduction of the -mf16c flag and FP16 vector types, which are specific to x86 architecture. These changes cause build failures on Power architecture, though the library builds and functions correctly on x86. To resolve this, architecture-specific checks will be implemented. The -mf16c flag will not be applied on the Power architecture systems, while FP32Vec types will be used as a fallback for unsupported FP16 vector types on Power architecture. This fix ensures compatibility and successful builds across different architectures.

Copy link

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 do one of these:

  • Add ready label to the PR
  • Enable auto-merge.

🚀

@mergify mergify bot added the ci/build label Nov 18, 2024
@sumitd2
Copy link
Contributor

sumitd2 commented Nov 18, 2024

cc: @khluu

@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 18, 2024
@simon-mo
Copy link
Collaborator

Please fix clang-format

Comment on lines 19 to 28
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
list(APPEND CXX_COMPILE_FLAGS
"-fopenmp"
"-DVLLM_CPU_EXTENSION")
else()
list(APPEND CXX_COMPILE_FLAGS
"-fopenmp"
"-mf16c"
"-DVLLM_CPU_EXTENSION")
endif()
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you could invert this to always apply

list(APPEND CXX_COMPILE_FLAGS
    "-fopenmp"
    "-DVLLM_CPU_EXTENSION")

And then add a case just if the processor is x86 to add "-mf16c"

Choose a reason for hiding this comment

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

similar to this block -

if (AVX512_FOUND AND NOT AVX512_DISABLED)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Above flag was applied for all architectures. We know for Power its not applicable so added exclusive check to avoid it for Power.
Adding exclusive check for x86 may avoid it applying for other supported architectures.

Copy link
Member

Choose a reason for hiding this comment

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

x86 is the only architecture that supports this flag, so I don't see how it would hurt
Please see this incoming PR for ARM support for an illustration of what I'm asking for here
https://github.com/vllm-project/vllm/pull/9957/files#diff-46b07f808e558aff84dcc365e53a91400c4be399757ff40c2da4278a50e89fbdL19-R24

@DarkLight1337
Copy link
Member

Please merge from main to fix the failing tests.

Manjul Mohan [email protected] and others added 21 commits November 19, 2024 07:26
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: Manjul Mohan <[email protected]>
We have too many dependencies and all patch updates can be a little noisy. This is to have dependabot ignore all patch version updates.

Signed-off-by: Manjul Mohan <[email protected]>
youkaichao and others added 2 commits November 19, 2024 07:26
@DarkLight1337 DarkLight1337 enabled auto-merge (squash) November 19, 2024 15:16
Copy link
Member

@mgoin mgoin left a comment

Choose a reason for hiding this comment

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

I guess we can land for now and fix the CPU cmake in the ARM support PRs

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) November 19, 2024 15:18
@youkaichao youkaichao disabled auto-merge November 19, 2024 17:34
@youkaichao youkaichao merged commit 1ea291a into vllm-project:main Nov 19, 2024
70 of 72 checks passed
coolkp pushed a commit to coolkp/vllm that referenced this pull request Nov 20, 2024
Signed-off-by: Manjul Mohan <[email protected]>
Signed-off-by: B-201 <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: ismael-dm <[email protected]>
Signed-off-by: Andrew Nesbitt <[email protected]>
Signed-off-by: mgoin <[email protected]>
Signed-off-by: yan ma <[email protected]>
Signed-off-by: Angus Wang <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: rickyx <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Manjul Mohan [email protected] <[email protected]>
Co-authored-by: B-201 <[email protected]>
Co-authored-by: Isotr0py <[email protected]>
Co-authored-by: youkaichao <[email protected]>
Co-authored-by: ismael-dm <[email protected]>
Co-authored-by: Andrew Nesbitt <[email protected]>
Co-authored-by: Michael Goin <[email protected]>
Co-authored-by: Yan Ma <[email protected]>
Co-authored-by: Angus Wang <[email protected]>
Co-authored-by: Lucas Wilkinson <[email protected]>
Co-authored-by: Ricky Xu <[email protected]>
Co-authored-by: Kevin H. Luu <[email protected]>
Co-authored-by: Jee Jee Li <[email protected]>
Co-authored-by: Mengqing Cao <[email protected]>
Co-authored-by: Travis Johnson <[email protected]>
Co-authored-by: Russell Bryant <[email protected]>
KuntaiDu pushed a commit to KuntaiDu/vllm that referenced this pull request Nov 20, 2024
Signed-off-by: Manjul Mohan <[email protected]>
Signed-off-by: B-201 <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: ismael-dm <[email protected]>
Signed-off-by: Andrew Nesbitt <[email protected]>
Signed-off-by: mgoin <[email protected]>
Signed-off-by: yan ma <[email protected]>
Signed-off-by: Angus Wang <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: rickyx <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Manjul Mohan [email protected] <[email protected]>
Co-authored-by: B-201 <[email protected]>
Co-authored-by: Isotr0py <[email protected]>
Co-authored-by: youkaichao <[email protected]>
Co-authored-by: ismael-dm <[email protected]>
Co-authored-by: Andrew Nesbitt <[email protected]>
Co-authored-by: Michael Goin <[email protected]>
Co-authored-by: Yan Ma <[email protected]>
Co-authored-by: Angus Wang <[email protected]>
Co-authored-by: Lucas Wilkinson <[email protected]>
Co-authored-by: Ricky Xu <[email protected]>
Co-authored-by: Kevin H. Luu <[email protected]>
Co-authored-by: Jee Jee Li <[email protected]>
Co-authored-by: Mengqing Cao <[email protected]>
Co-authored-by: Travis Johnson <[email protected]>
Co-authored-by: Russell Bryant <[email protected]>
rickyyx added a commit to rickyyx/vllm that referenced this pull request Nov 20, 2024
Signed-off-by: Manjul Mohan <[email protected]>
Signed-off-by: B-201 <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: ismael-dm <[email protected]>
Signed-off-by: Andrew Nesbitt <[email protected]>
Signed-off-by: mgoin <[email protected]>
Signed-off-by: yan ma <[email protected]>
Signed-off-by: Angus Wang <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: rickyx <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Manjul Mohan [email protected] <[email protected]>
Co-authored-by: B-201 <[email protected]>
Co-authored-by: Isotr0py <[email protected]>
Co-authored-by: youkaichao <[email protected]>
Co-authored-by: ismael-dm <[email protected]>
Co-authored-by: Andrew Nesbitt <[email protected]>
Co-authored-by: Michael Goin <[email protected]>
Co-authored-by: Yan Ma <[email protected]>
Co-authored-by: Angus Wang <[email protected]>
Co-authored-by: Lucas Wilkinson <[email protected]>
Co-authored-by: Ricky Xu <[email protected]>
Co-authored-by: Kevin H. Luu <[email protected]>
Co-authored-by: Jee Jee Li <[email protected]>
Co-authored-by: Mengqing Cao <[email protected]>
Co-authored-by: Travis Johnson <[email protected]>
Co-authored-by: Russell Bryant <[email protected]>
Signed-off-by: rickyx <[email protected]>
tlrmchlsmth pushed a commit to neuralmagic/vllm that referenced this pull request Nov 23, 2024
Signed-off-by: Manjul Mohan <[email protected]>
Signed-off-by: B-201 <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: ismael-dm <[email protected]>
Signed-off-by: Andrew Nesbitt <[email protected]>
Signed-off-by: mgoin <[email protected]>
Signed-off-by: yan ma <[email protected]>
Signed-off-by: Angus Wang <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: rickyx <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Manjul Mohan [email protected] <[email protected]>
Co-authored-by: B-201 <[email protected]>
Co-authored-by: Isotr0py <[email protected]>
Co-authored-by: youkaichao <[email protected]>
Co-authored-by: ismael-dm <[email protected]>
Co-authored-by: Andrew Nesbitt <[email protected]>
Co-authored-by: Michael Goin <[email protected]>
Co-authored-by: Yan Ma <[email protected]>
Co-authored-by: Angus Wang <[email protected]>
Co-authored-by: Lucas Wilkinson <[email protected]>
Co-authored-by: Ricky Xu <[email protected]>
Co-authored-by: Kevin H. Luu <[email protected]>
Co-authored-by: Jee Jee Li <[email protected]>
Co-authored-by: Mengqing Cao <[email protected]>
Co-authored-by: Travis Johnson <[email protected]>
Co-authored-by: Russell Bryant <[email protected]>
Signed-off-by: Tyler Michael Smith <[email protected]>
sleepwalker2017 pushed a commit to sleepwalker2017/vllm that referenced this pull request Dec 13, 2024
Signed-off-by: Manjul Mohan <[email protected]>
Signed-off-by: B-201 <[email protected]>
Signed-off-by: Isotr0py <[email protected]>
Signed-off-by: youkaichao <[email protected]>
Signed-off-by: ismael-dm <[email protected]>
Signed-off-by: Andrew Nesbitt <[email protected]>
Signed-off-by: mgoin <[email protected]>
Signed-off-by: yan ma <[email protected]>
Signed-off-by: Angus Wang <[email protected]>
Signed-off-by: Lucas Wilkinson <[email protected]>
Signed-off-by: rickyx <[email protected]>
Signed-off-by: Jee Jee Li <[email protected]>
Signed-off-by: Mengqing Cao <[email protected]>
Signed-off-by: Travis Johnson <[email protected]>
Co-authored-by: Manjul Mohan [email protected] <[email protected]>
Co-authored-by: B-201 <[email protected]>
Co-authored-by: Isotr0py <[email protected]>
Co-authored-by: youkaichao <[email protected]>
Co-authored-by: ismael-dm <[email protected]>
Co-authored-by: Andrew Nesbitt <[email protected]>
Co-authored-by: Michael Goin <[email protected]>
Co-authored-by: Yan Ma <[email protected]>
Co-authored-by: Angus Wang <[email protected]>
Co-authored-by: Lucas Wilkinson <[email protected]>
Co-authored-by: Ricky Xu <[email protected]>
Co-authored-by: Kevin H. Luu <[email protected]>
Co-authored-by: Jee Jee Li <[email protected]>
Co-authored-by: Mengqing Cao <[email protected]>
Co-authored-by: Travis Johnson <[email protected]>
Co-authored-by: Russell Bryant <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/build ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.