From abdc95ec4c66cfd9a4b206e239eca3f0b3c393d2 Mon Sep 17 00:00:00 2001 From: Takuro Iizuka Date: Thu, 4 Jan 2024 10:37:08 -0800 Subject: [PATCH] Fixed direct-extern --- test/direct-extern.cc | 45 +++++++++++++++++-------------------------- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/test/direct-extern.cc b/test/direct-extern.cc index f59a812d..93776c9f 100644 --- a/test/direct-extern.cc +++ b/test/direct-extern.cc @@ -7,50 +7,41 @@ int main() try { int size = 32; - Param wp{"width", std::to_string(size)}; - Param hp{"height", std::to_string(size)}; - Param vp{"v", std::to_string(1)}; - - Builder b; - b.set_target(Halide::get_host_target().with_feature(Halide::Target::Profile)); // CPU - b.with_bb_module("ion-bb"); - b.with_bb_module("ion-bb-test"); - - Node n; - Port ip{"input", Halide::type_of(), 2}; - n = b.add("test_extern_inc_i32x2")(ip).set_param(wp, hp, vp); - n = b.add("base_schedule")(n["output"]).set_param(Param{"output_name", "b1"}, Param{"compute_level", "compute_inline"}); - n = b.add("test_extern_inc_i32x2")(n["output"]).set_param(wp, hp, vp); - n = b.add("base_schedule")(n["output"]).set_param(Param{"output_name", "b2"}, Param{"compute_level", "compute_inline"}); - - PortMap pm; + Param wp("width", size); + Param hp("height", size); + Param vp("v", 1); Halide::Buffer ibuf(std::vector{size, size}); - for (int y=0; y obuf(std::vector{size, size}); for (int y=0; y