Repository navigation
fix(geo): honor explicit JAX platform settings in geo.jit - #690
Open
jungdaesuh wants to merge 1 commit into
Open
jungdaesuh wants to merge 1 commit into
jungdaesuh wants to merge 1 commit into
Conversation
jungdaesuh
force-pushed
the
fix/geo-jit-platform
branch
from
December 2, 2026 22:00
77c4a15 to
8637dcd
Compare
Only set jax_platform_name to 'cpu' on import when none of jax_platforms, jax_platform_name, or jax_default_device is already configured, so callers selecting a GPU or device before importing simsopt.geo are not overridden.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #690 +/- ##
=======================================
Coverage 90.94% 90.94%
=======================================
Files 86 86
Lines 18600 18601 +1
=======================================
+ Hits 16915 16916 +1
Misses 1685 1685
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
jungdaesuh
force-pushed
the
fix/geo-jit-platform
branch
from
December 3, 2026 01:25
8637dcd to
7b8a78e
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Importing
simsopt.geo.jitunconditionally calledjax.config.update("jax_platform_name", "cpu"), overriding explicit GPU or device choices configured viajax_platforms,jax_platform_name, orjax_default_device(by environment variable,jax.config.update, orjax.default_device). It now applies that CPU default only when none of those settings is already configured, preserving existing defaults for unconfigured callers.