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

julia.withPackages: add juliaCpuTarget option #361655

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

thomasjm
Copy link
Contributor

@thomasjm thomasjm commented Dec 4, 2024

Copying from the documentation I added for this feature:

  • juliaCpuTarget: Allows you to set JULIA_CPU_TARGET when precompiling. Has no effect if precompile=false.

    You may want to use this if you're building a Julia depot that will end up in a Nix cache and used on machines with
    different CPUs.

    Why? Julia will detect the CPU microarchitecture of the build machine and include this information in the precompiled
    *.ji files. Starting in 1.10 Julia became more strict about checking the CPU target compatibility, so it may reject
    your precompiled files if they were compiled on a different machine.
    A good option to provide wide compatibility is to set this to "generic", although this may reduce performance.
    You can also set a semicolon-separated list of multiple different targets. See the Julia documentation for details.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 8.has: documentation This PR adds or changes documentation 6.topic: julia labels Dec 4, 2024
@NickCao NickCao merged commit 032239c into NixOS:master Dec 4, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants