#include "opencl_source_map.hpp" namespace MNN { #ifndef MNN_OPENCL_BUFFER_CLOSED const char* splitgelu_buf = "#ifdef MNN_SUPPORT_FP16\n" "#pragma OPENCL EXTENSION cl_khr_fp16 : enable\n" "#endif\n" "__kernel void splitgelu_buf(__private int global_dim0,__private int global_dim1,\n" " __global const FLOAT*input,\n" " #ifdef DOUBLE_INPUTS\n" " __global const FLOAT*input1,\n" " #endif\n" " __global FLOAT*output,\n" " __private const int4 shape\n" "){\n" " int2 pos=(int2)(get_global_id(0),get_global_id(1));\n" " if (pos.x