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

Set compatibility mode for native image build option #666

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

EtienneLt
Copy link
Contributor

@EtienneLt EtienneLt commented Oct 23, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

When running on some Linux system, we get error:

ImportError: graalvm_create_isolate error: 23

This is because the default march value for native image expect the code to be running on a machine with exactly the same processor features.

What is the new behavior (if this is a feature change)?

We use compatibility mode for march. Performance impact seems to be like 10% slower which is ok to get a better portability of the wheel.

Does this PR introduce a breaking change or deprecate an API?

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

@EtienneLt EtienneLt requested a review from geofjamg October 23, 2023 07:33
@EtienneLt EtienneLt self-assigned this Oct 23, 2023
@EtienneLt EtienneLt force-pushed the change-to-compatibility-mode-for-graalvm branch from f6ea9f3 to 7311d87 Compare October 23, 2023 08:40
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg changed the title [WIP] set compatibility mode for native image build option Set compatibility mode for native image build option Oct 23, 2023
@geofjamg geofjamg added bug Something isn't working and removed do not merge labels Oct 23, 2023
@EtienneLt EtienneLt removed the bug Something isn't working label Oct 24, 2023
@EtienneLt EtienneLt added status: ready to be merged bug Something isn't working labels Oct 24, 2023
@EtienneLt EtienneLt merged commit bfd6114 into main Oct 24, 2023
7 checks passed
@EtienneLt EtienneLt deleted the change-to-compatibility-mode-for-graalvm branch October 24, 2023 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants