Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xe: conv: fix tuning support #2288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/gpu/intel/jit/conv/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ status_t init_cfg(conv_config_t &cfg, const primitive_t *prim) {
auto try_cfg = cfg;
auto status = try_init_cfg(try_cfg);
if (status == status::success) {
if (cfg.tiler().is_tuning_mode()) cfg.tiler().move_next(cfg);
cfg = std::move(try_cfg);
return status::success;
}
Expand Down
3 changes: 2 additions & 1 deletion src/gpu/intel/jit/conv/gen_convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ class gen_convolution_t {
}

for (int try_iter = 0; try_iter < max_tries; try_iter++) {
if (try_iter != 0) tiler->move_next(cfg);
if (try_iter != 0 && !tiler->is_tuning_mode())
tiler->move_next(cfg);
try {
cfg = data.pd_cfg;
cfg.set_pd(
Expand Down
2 changes: 1 addition & 1 deletion src/gpu/intel/jit/conv/tiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ class conv_tuner_t {
if (tune_data_.reported_points() != created_configs_) return;
if (created_configs_ < 8) return;

int beg = params_gen_.cur_index() + 1;
int beg = params_gen_.cur_index();
int end = params_gen_.configs();
if (beg == end) return;

Expand Down
Loading