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/relu.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 / relu.cl` 16 lines ยท 529 bytes Raw Blame History 1 #pragma OPENCL EXTENSION cl_khr_fp16 : enable 2 3 //------------------------------------------------------------------------------ 4 // relu 5 //------------------------------------------------------------------------------ 6 kernel void kernel_relu( 7 global float * src0, 8 ulong offset0, 9 global float * dst, 10 ulong offsetd 11 ) { 12 src0 = (global float*)((global char*)src0 + offset0); 13 dst = (global float*)((global char*)dst + offsetd); 14 15 dst[get_global_id(0)] = fmax(0.0f, src0[get_global_id(0)]); 16 }