MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / load2LocalMem

Method load2LocalMem

src/backend/oneapi/kernel/bilateral.hpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers

nothing calls this directly

Calls 1

clampFunction · 0.50

Tested by

no test coverage detected