krzysz00 wrote: @jayfoad > High level question: I don't understand why you call this a "gather" > operation. What do you mean by that? Isn't it semantically just a memcpy, or > a (global/buffer) load followed by a (LDS) store?
The semantics of this operation (at least in the pre-gfx950 cases) are ``` lds_load(vector globalAddr, scalar ldsAddr) { lds[ldsAddr + 4 * laneId] = global[globalAddr]; } ``` Note that your lane-varying global address can point all over memory, but that the values to written to LDS always go at base, base + 4 bytes, base + 8 bytes, ... base + (wavesize - 1) * 4 bytes >From where I'm standing, this is a gather https://github.com/llvm/llvm-project/pull/137425 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits