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

Make Julia startup options configurable; set optimize=3 #228

Merged
merged 12 commits into from
Nov 22, 2022

Conversation

MilesCranmer
Copy link
Owner

@MilesCranmer MilesCranmer commented Nov 21, 2022

cc @mkitti

I have optimize=3, but not sure if that's a safe default or not. I wouldn't expect any user to find julia_kwargs though, so I'm leaning towards choosing the fastest option as a default if I don't expect it to increase crashes.

@MilesCranmer MilesCranmer changed the title This lets PySR set the julia startup options explicitly, rather than through environment variables Make Julia startup options configurable Nov 21, 2022
@MilesCranmer MilesCranmer changed the title Make Julia startup options configurable Make Julia startup options configurable; set optimize=3 Nov 21, 2022
warnings.warn(
"Julia has already started. The new Julia options "
+ str(set_diff)
+ " will be ignored."
Copy link
Owner Author

Choose a reason for hiding this comment

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

@mkitti I'm thinking it might be good to do this inside PyJulia instead

Copy link
Owner Author

Choose a reason for hiding this comment

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

(For the future)

@MilesCranmer MilesCranmer merged commit da0bef9 into master Nov 22, 2022
@MilesCranmer MilesCranmer deleted the optimize=3 branch November 22, 2022 00:25
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.

1 participant