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 10.0.0 (new formula) #61246

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Formula/halide.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class Halide < Formula
desc "Language for fast, portable data-parallel computation"
homepage "https://halide-lang.org"
url "https://github.com/halide/Halide/archive/v10.0.0.tar.gz"
sha256 "23808f8e9746aea25349a16da92e89ae320990df3c315c309789fb209ee40f20"
license "MIT"

depends_on "cmake" => :build
depends_on "jpeg"
depends_on "libomp"
depends_on "libpng"
depends_on "llvm"
depends_on "python@3.8"

def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make"
system "make", "install"
end
end

test do
cp share/"tutorial/lesson_01_basics.cpp", testpath
system ENV.cxx, "-std=c++11", "lesson_01_basics.cpp", "-L#{lib}", "-lHalide", "-o", "test"
assert_match "Success!", shell_output("./test")
end
end