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

gradient_halide: init at 2018-08-31 #46349

Closed
wants to merge 1 commit into from

Conversation

bcdarwin
Copy link
Member

@bcdarwin bcdarwin commented Sep 7, 2018

Halide extended with autodiff as described in Differentiable Programming for
Image Processing and Deep Learning in Halide
.

Gradient Halide is implemented in a separate repository from stock Halide, hence this package. At the moment, I've simply copied the existing Halide expression since there are minimal differences. It seems like I should factor the two expressions but I'm not sure of the appropriate directory structure. Of course, hopefully the two repositories will soon merge and this will be irrelevant anyway.

The tests seem to be getting built but I couldn't immediately figure out how to run them when building, but I've compiled and run a couple examples against the library.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • [NA] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • [NA] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-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)
  • Fits CONTRIBUTING.md.

pkgs/development/compilers/gradient-halide/default.nix Outdated Show resolved Hide resolved
# Another way is using "make halide_archive", but the tarball is not easy
# to disassemble.
installPhase = ''
find
Copy link
Member

Choose a reason for hiding this comment

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

Not needed anymore :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't exactly understand your comment. The default installPhase doesn't install things correctly; did you have some alternative in mind?

sha256 = "0qhk1plc4697p1livf9xz2c5aqaq6v9sx1pr0ia6x7sjkmggc9rc";
};

patches = [ ./nix.patch ];
Copy link
Member

Choose a reason for hiding this comment

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

Do you think it would be possible to upstream some of these patches?

Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps, but I didn't make these patches myself so I don't know exactly what would we involved. However, it looks like I might soon create an issue/PR against the stock halide NIx package so perhaps I'll suggest it there.

@mmahut
Copy link
Member

mmahut commented Aug 11, 2019

Are there any updates on this pull request, please?

@bcdarwin bcdarwin closed this Oct 26, 2019
@bcdarwin bcdarwin deleted the gradient-halide branch January 9, 2020 22:01
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

4 participants