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

gpu: generic: sycl: fix typos in VDISPATCH_SUM calls #2287

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
2 changes: 1 addition & 1 deletion src/gpu/generic/sycl/ref_sum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct ref_sum_t : public gpu::generic::sycl::primitive_t {
}

VDISPATCH_SUM_SC(set_default_params(), VERBOSE_UNSUPPORTED_TAG);
DISPATCH_SUM(n <= DNNL_REF_SUM_MAX_NUM_TENSORS, VERBOSE_BAD_PARAM,
VDISPATCH_SUM(n <= DNNL_REF_SUM_MAX_NUM_TENSORS, VERBOSE_BAD_PARAM,
"n_inputs");

return init_conf();
Expand Down
6 changes: 3 additions & 3 deletions src/gpu/generic/sycl/ref_sum_many_inputs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ struct ref_sum_many_inputs_t : public gpu::generic::sycl::primitive_t {

const int n = n_inputs();
VDISPATCH_SUM_SC(set_default_params(), VERBOSE_UNSUPPORTED_TAG);
VDISPATCH_SUM_SC(
VDISPATCH_SUM(
attr()->has_default_values(), VERBOSE_UNSUPPORTED_ATTR);
// prevent inf recursion
VDISPATCH_SUM_SC(n > DNNL_REF_SUM_MAX_NUM_TENSORS,
VERBOSE_BAD_PARAM, "n_inputs");
VDISPATCH_SUM(n > DNNL_REF_SUM_MAX_NUM_TENSORS, VERBOSE_BAD_PARAM,
"n_inputs");

// the first kernel handles up to 8 inputs and remaining ones up to 7
const int n_kernels = n == 1
Expand Down
Loading