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-opencl/kernels/fill.cl # 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-opencl / kernels / fill.cl` 17 lines ยท 465 bytes Raw Blame History 1 #pragma OPENCL EXTENSION cl_khr_fp16 : enable 2 3 //------------------------------------------------------------------------------ 4 // fill 5 //------------------------------------------------------------------------------ 6 __kernel void kernel_fill_f32( 7 __global float *dst, 8 ulong offsetd, 9 float v, 10 int n 11 12 ) { 13 dst = (global float*)((global char*)dst + offsetd); 14 if(get_global_id(0) < n){ 15 dst[get_global_id(0)] = v; 16 } 17 }