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

[MLAS] Use C-style casting for power vector instructions #20957

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Jun 6, 2024

Description

Uses C-style casting for Power vector instructions in MlasQuantizeLinearInt4Kernel.

Motivation and Context

Vector commands (e.g., vec_xst) need C-style casting to support various compiler versions.
ONNX Runtime CI pipelines do not build with all compiler versions. The recent INT4 PR broke the powerpc build for certain compiler versions because it uses C++-style static_cast<>.

See: #20362 (comment)

Signed-off-by: adrianlizarraga <adlizarraga@microsoft.com>
@adrianlizarraga
Copy link
Contributor Author

@ChipKerchner, Can you please take a look? Thanks.

@ChipKerchner
Copy link
Contributor

Looks good to me

@adrianlizarraga adrianlizarraga merged commit 128bfc0 into main Jun 6, 2024
96 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/mlas-power-int4-quant-c-cast branch June 6, 2024 22:12
@ChipKerchner
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants