Skip to content

[microTVM] Use autotuning to choose num_outputs value #13528

@guberti

Description

@guberti

Once #13242 lands, the convolution schedules for microTVM will have a tunable parameter num_outputs:

# Decide how many sums our function should have running at the same time. Doing
# this lets us do "more work" for each memory load, but doing too many of them causes us to run
# out of registers. Currently this is set to either 1 or 2, but autotuning this value would
# improve performance a lot.
num_sums = 2

As the comments states, picking this value is important for performance. It would be awesome to be able to autotune this - the correct value is very dependent on the exact parameters of the convolution, picking correctly will have a >10% impact on performance, and predicting it without autotuning would be challenging (though theoretically possible).

Note that this value is used in the compute function, not in the scheduling function, which makes autotuning harder.

cc @alanmacd @gromero @leandron @mehrdadh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions