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

onnxruntime: fix aarch64-darwin #287255

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

SomeoneSerge
Copy link
Contributor

@SomeoneSerge SomeoneSerge commented Feb 8, 2024

...following @cbourjau s suggestion

Follow-up to: #258392

Waiting for the build of interest (aarch64-darwin): https://github.com/NixOS/nixpkgs/pull/287255/checks?check_run_id=21366391259

Description of changes

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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 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.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Feb 8, 2024
@SomeoneSerge
Copy link
Contributor Author

@ofborg build onnxruntime

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, right, many people use Eigen...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok I hope I avoided the mass ping issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cbourjau I retargeted the PR for staging because it's a lot of rebuilds; if you need onnxruntime on aarch64-darwin working right now, you might have to submit a temporary hotfix (TM) for the master, doing essentially the ad hoc override much like the one you started with (only without fetchcontent)

@SomeoneSerge SomeoneSerge marked this pull request as draft February 8, 2024 14:47
...following cbourjau s idea
@SomeoneSerge SomeoneSerge force-pushed the fix/onnxruntime-darwin branch from 439b592 to d56c63c Compare February 8, 2024 14:52
@SomeoneSerge SomeoneSerge changed the base branch from master to staging February 8, 2024 14:52
@SomeoneSerge SomeoneSerge marked this pull request as ready for review February 8, 2024 14:56
@cbourjau
Copy link
Contributor

cbourjau commented Feb 8, 2024

Thanks for looking into this! Might it make sense to only apply the patch for darwin since the build seems to be just fine on other systems?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might it make sense to only apply the patch for darwin since the build seems to be just fine on other systems?

The original MR doesn't seem darwin-specific, and I personally dislike conditional patches (they're kind of like extra moving pieces, it's too real for my small reptile brain). We wouldn't save much either because once you have to bootstrap for one platform it's already "expensive"? I'm open to hear other opinions though

@ofborg ofborg bot added 10.rebuild-darwin: 5001+ 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild 10.rebuild-linux-stdenv This PR causes stdenv to rebuild 8.has: clean-up 8.has: package (new) This PR adds a new package and removed 10.rebuild-darwin: 2501-5000 labels Feb 8, 2024
@7c6f434c
Copy link
Member

No log for the documentation failure looks like an unrelated staging issue…

@7c6f434c 7c6f434c merged commit 8c2f0e2 into NixOS:staging Feb 10, 2024
30 of 31 checks passed
@SomeoneSerge SomeoneSerge mentioned this pull request Feb 16, 2024
12 tasks
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.

3 participants