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

Use GraalVM CPU architecture compatibility mode #1733

Merged

Conversation

datho7561
Copy link
Contributor

This prevents GraalVM from using CPU architecture extensions (for example, AVX and AVX2 for x86_64). This will increase the portability of the binary (i.e. it can be run on older CPUs that don't support those instructions).

Docs for the setting: https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/#build-options

See redhat-developer/vscode-xml#1055

This prevents GraalVM from using CPU architecture extensions
(for example, AVX and AVX2 for x86_64).
This will increase the portability of the binary
(i.e. it can be run on older CPUs that don't support those instructions).

Docs for the setting: https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/#build-options

See redhat-developer/vscode-xml#1055

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 marked this pull request as ready for review February 27, 2025 20:14
@datho7561
Copy link
Contributor Author

I've tested the generated binary using Helix and it works there. I also disassembled the binary and used the awk script here to look for AVX instructions: https://stackoverflow.com/a/50056059 ( I didn't find any ).

@datho7561
Copy link
Contributor Author

@rgrunber if you have some time, do you mind looking over this?

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Seems reasonable based on https://www.graalvm.org/latest/reference-manual/native-image/overview/Options/ . compatibility is probably what we wanted.

@datho7561 datho7561 merged commit e3757dd into eclipse-lemminx:main Feb 27, 2025
4 of 6 checks passed
@datho7561 datho7561 deleted the no-cpu-architecture-extensions branch February 27, 2025 21:17
@datho7561 datho7561 added this to the 0.29.1 milestone Mar 4, 2025
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.

2 participants