Skip to content

Commit

Permalink
gpu: sycl: eltwise: Reduce size of kernel arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeor255 committed Jul 9, 2024
1 parent 402461d commit 61bf2bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/gpu/generic/sycl/ref_eltwise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ status_t ref_sycl_eltwise_fwd_t::pd_t::init_conf() {
conf_.h = H();
conf_.w = W();

if (attr()->post_ops_.len() > sycl_post_ops_t::max_post_ops) {
return status::unimplemented;
}
conf_.post_po_len = attr()->post_ops_.len();
conf_.post_ops = sycl_post_ops_t(attr());

Expand Down
2 changes: 1 addition & 1 deletion src/gpu/generic/sycl/sycl_primitive_conf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct sycl_eltwise_conf_t {
dim_t wg_size;
dim_t wk_size;
dim_t post_po_len;
xpu::sycl::md_t binary_src_arr[8];
xpu::sycl::md_t binary_src_arr[sycl::sycl_post_ops_t::max_post_ops];
sycl_post_ops_t post_ops;
};

Expand Down

0 comments on commit 61bf2bb

Please sign in to comment.