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-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}