File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,6 @@ std::unique_ptr<ynn::scheduling_info> ynn_runtime::make_schedule(
8787 // Enough tasks to have good load balancing.
8888 slinky::index_t target_task_count = max_threads > 1 ? max_threads * 2 : 1 ;
8989
90- // Area is selected such that tiles fit better into cache, this is a
91- // constant for now, but we could add a more advanced logic based on
92- // hardware info.
9390 assert (dims.size () == output->rank () || dims.size () + 1 == output->rank ());
9491 // For min_max reductions dims.size() + 1 == output.rank().
9592 // Otherwise, dims.size() == output->rank().
@@ -100,6 +97,9 @@ std::unique_ptr<ynn::scheduling_info> ynn_runtime::make_schedule(
10097 }
10198 assert (output->rank () == output_extents.size ());
10299
100+ // Area is selected such that tiles fit better into cache, this is a
101+ // constant for now, but we could add a more advanced logic based on
102+ // hardware info.
103103 slinky::expr tile_area = slinky::ceil_div (slinky::expr (32768 * 4 ),
104104 output->elem_size () * element_cost);
105105 std::vector<slinky::expr> splits (rank);
You can’t perform that action at this time.
0 commit comments