Skip to content

zshipko/halide-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages