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

halide: Enable on platforms.all #110106

Merged
merged 2 commits into from Jan 25, 2021

Conversation

spease
Copy link
Contributor

@spease spease commented Jan 20, 2021

Motivation for this change

Enable x86_64-darwin support on Halide

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Seems pretty straightforward. I think the only reason it wasn't enabled was because nobody thought to when the package was upgraded from 8.0 to 10.0.

@@ -49,7 +49,7 @@ llvmPackages.stdenv.mkDerivation rec {
description = "C++ based language for image processing and computational photography";
homepage = "https://halide-lang.org";
license = licenses.mit;
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
Copy link
Member

Choose a reason for hiding this comment

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

We could probably just set platforms to all, right?

@spease
Copy link
Contributor Author

spease commented Jan 20, 2021 via email

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Jan 20, 2021

I think 10.0 is old enough it wouldn’t support m1 macs, and iOS probably isn’t supported as a host architecture.

I am pretty sure that most packages in nixpkgs do not account for those arches at all.

Also please change the PR title and commit message to halide: Enable on x86_64-darwin

@spease spease changed the title Enable halide on x86_64-darwin halide: Enable on x86_64-darwin Jan 21, 2021
@spease spease force-pushed the enable-halide-x86_64-darwin branch from 5de5848 to 41d9dec Compare January 21, 2021 23:51
@spease
Copy link
Contributor Author

spease commented Jan 21, 2021

I've changed the PR title and commit message. Do you also want me to change to platforms.all? I have only positively tested on x86_64-darwin

@SuperSandro2000
Copy link
Member

Do you also want me to change to platforms.all?

It will most likely also work on all the other platforms and if not this is mostly for hydra anyway.

@SuperSandro2000 SuperSandro2000 changed the title halide: Enable on x86_64-darwin halide: Enable on platforms.all Jan 25, 2021
@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
If you have any questions or problems please reach out to SuperSandro2000 on IRC.

Result of nixpkgs-review pr 110106 run on x86_64-darwin 1

1 package built:
  • halide

@SuperSandro2000 SuperSandro2000 merged commit e610806 into NixOS:master Jan 25, 2021
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.

None yet

2 participants