* scripts : update sync [no ci] * files : relocate [no ci] * ci : disable kompute build [no ci] * cmake : fixes [no ci] * server : fix mingw build ggml-ci * cmake : minor [no ci] * cmake : link math library [no ci] * cmake : build normal ggml library (not object library) [no ci] * cmake : fix kompute build ggml-ci * make,cmake : fix LLAMA_CUDA + replace GGML_CDEF_PRIVATE ggml-ci * move public backend headers to the public include directory (#8122) * move public backend headers to the public include directory * nix test * spm : fix metal header --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> * scripts : fix sync paths [no ci] * scripts : sync ggml-blas.h [no ci] --------- Co-authored-by: slaren <slarengh@gmail.com>
17 lines
609 B
Text
17 lines
609 B
Text
void main() {
|
|
const uint i = gl_WorkGroupID.x;
|
|
const int r = inB[i + pcs.inBOff];
|
|
|
|
int z = 0;
|
|
for (uint ind = gl_LocalInvocationID.x; ind < pcs.ne00/16; ind += gl_WorkGroupSize.x) {
|
|
const uint inIndex = (r * pcs.nb01 + pcs.inAOff) + ind/NL * SIZE_OF_BLOCK;
|
|
const mat4 result = dequantize_block(inIndex, ind%NL);
|
|
for (uint j = 0; j < 4; ++j) {
|
|
for (uint k = 0; k < 4; ++k) {
|
|
const uint outIndex = i * pcs.nb1/BYTES_FOR_TYPE + pcs.outOff + z;
|
|
out_[outIndex] = result[j][k];
|
|
++z;
|
|
}
|
|
}
|
|
}
|
|
}
|