10 releases

0.4.1 May 1, 2021
0.4.0 Sep 4, 2020
0.3.5 Sep 4, 2020
0.3.3 Apr 10, 2020
0.1.0 Dec 4, 2019

#1039 in Command line utilities

Download history 6/week @ 2021-05-25 2/week @ 2021-06-01 14/week @ 2021-06-08 4/week @ 2021-06-15 9/week @ 2021-06-22 4/week @ 2021-06-29 5/week @ 2021-07-06 3/week @ 2021-07-13 13/week @ 2021-07-20 22/week @ 2021-07-27 17/week @ 2021-08-03 17/week @ 2021-08-10 4/week @ 2021-08-17 7/week @ 2021-08-24 5/week @ 2021-09-07

81 downloads per month
Used in 3 crates (via halide-runtime)

ISC license

21KB
565 lines

halide-build

A build tool for Halide filters.

It can be used from within Rust code or from the command-line.

CLI

To build the command-line interface the bin feature must be activated:

$ cargo build --features=bin

Build

To build a kernel from Rust build.rs:

// Create the build context
let build = Build::new(halide_path, output_path);

// Add your source files
build.src.push("mykernel.cpp");

// Build
if build.build()? {
  // Run
  assert!(build.run()?);

  // Link the resulting library
  link_library("./libmykernel.a")
}


lib.rs:

halide-build is used to compile Halide kernels

Dependencies

~0–310KB