| 145 | } |
| 146 | |
| 147 | void load2LocalMem(sycl::local_accessor<outType, 1> shrd, const inType* in, |
| 148 | int lx, int ly, int shrdStride, int dim0, int dim1, |
| 149 | int gx, int gy, int inStride1, int inStride0) const { |
| 150 | int gx_ = sycl::clamp(gx, 0, dim0 - 1); |
| 151 | int gy_ = sycl::clamp(gy, 0, dim1 - 1); |
| 152 | shrd[lIdx(lx, ly, shrdStride, 1)] = |
| 153 | (outType)in[lIdx(gx_, gy_, inStride1, inStride0)]; |
| 154 | } |
| 155 | |
| 156 | private: |
| 157 | write_accessor<outType> d_dst_; |