halide-build

Crates.iohalide-build
lib.rshalide-build
version0.6.0
sourcesrc
created_at2019-12-04 01:21:30.89362
updated_at2022-10-29 17:30:59.128319
descriptionA library/utility for building Halide kernels
homepage
repositoryhttps://github.com/zshipko/halide-build
max_upload_size
id186285
size25,866
zach (zshipko)

documentation

https://docs.rs/halide-build

README

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")
}

Commit count: 40

cargo fmt