interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-vulkan / vulkan-shaders / mul_mm_id_funcs.glsl

12 lines · 369 bytes Raw Blame History
1#ifdef MUL_MAT_ID
2shared u16vec2 row_ids[BN];
3uint _ne1;
4
5void load_row_ids(uint row_begin) {
6 for (uint i = gl_LocalInvocationIndex; i < _ne1; i += BLOCK_SIZE) {
7 const uint packed_row_id = data_row_map[p.row_ids_offset + row_begin + i];
8 row_ids[i] = u16vec2(packed_row_id & 0xffffu, packed_row_id >> 16);
9 }
10 barrier();
11}
12#endif // MUL_MAT_ID