Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-vulkan/vulkan-shaders/rope_multi.comp # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-vulkan / vulkan-shaders / rope_multi.comp` 17 lines ยท 467 bytes Raw Blame History 1 #version 450 2 3 #include "rope_head.glsl" 4 #include "rope_funcs.glsl" 5 6 void main() { 7 const uint i0 = 2*gl_GlobalInvocationID.y; 8 const uint row = gl_GlobalInvocationID.x + 32768 * gl_GlobalInvocationID.z; 9 if (row >= pc.nrows) { 10 return; 11 } 12 const uint i3 = row / (pc.ne01*pc.ne02); 13 const uint i2 = (row - i3 * pc.ne01*pc.ne02) / pc.ne01; 14 const uint i1 = (row - i3 * pc.ne01*pc.ne02 - i2 * pc.ne01); 15 16 rope_multi(i0, i1, i2, i3, pc); 17 }