Skip to content
Snippets Groups Projects
build.rs 520 B
Newer Older
  • Learn to ignore specific revisions
  • use juno_build::JunoCompiler;
    
    fn main() {
    
    prathi3's avatar
    prathi3 committed
        #[cfg(not(feature = "cuda"))]
        {
            JunoCompiler::new()
                .file_in_src("matmul.jn")
                .unwrap()
    
    Aaron Councilman's avatar
    Aaron Councilman committed
                .schedule_in_src("cpu.sch")
                .unwrap()
    
    prathi3's avatar
    prathi3 committed
                .build()
                .unwrap();
        }
        #[cfg(feature = "cuda")]
        {
            JunoCompiler::new()
                .file_in_src("matmul.jn")
                .unwrap()
                .schedule_in_src("gpu.sch")
                .unwrap()
                .build()
                .unwrap();
        }