Skip to content

Commit

Permalink
gpu: generic: sycl: fix typos in VDISPATCH_SUM calls (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
spalicki authored Dec 19, 2024
1 parent bd3a386 commit 9fed40d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 9fed40d

Please sign in to comment.