-
Notifications
You must be signed in to change notification settings - Fork 6
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
Does not respect JULIA_CPU_TARGET #15
Comments
HostCPUFeatures.jl/src/HostCPUFeatures.jl Lines 49 to 50 in a792201
Is where it is supposed to check for this. |
This does not work, because:
In other words, even though the pkgimages respect the env var JULIA_CPU_TARGET, it is not reflected in Base.JLOptions() |
More information can be found here: https://docs.julialang.org/en/v1.10-dev/manual/environment-variables/#JULIA_CPU_TARGET |
Ah, okay, that makes sense. Want to prepare a PR? Long term, of course, the plan is to drop this from the ecosystem because it does not integrate well. |
I'll give it a go! |
MWE:
This cause issues during precompilation with pkgimages on Julia 1.9, e.g. BioJulia/FASTX.jl#101.
Without knowing many of the details, I think this should be relatively easy to fix. Setting JULIA_CPU_FEATURES forces precompilation of all packages, so HostCPUFeatures can simply check at precompile time if the env variable is set, and then adjust its compile time results accordingly.
The text was updated successfully, but these errors were encountered: