1namespace dnnl {
2namespace impl {
3namespace gpu {
4namespace ocl {
5const char *simple_sum_kernel = R"==(/******************************************************************************* )==""\n"
6R"==(* Copyright 2019-2020 Intel Corporation )==""\n"
7R"==(* )==""\n"
8R"==(* Licensed under the Apache License, Version 2.0 (the "License"); )==""\n"
9R"==(* you may not use this file except in compliance with the License. )==""\n"
10R"==(* You may obtain a copy of the License at )==""\n"
11R"==(* )==""\n"
12R"==(* http: )==""\n"
13R"==(* )==""\n"
14R"==(* Unless required by applicable law or agreed to in writing, software )==""\n"
15R"==(* distributed under the License is distributed on an "AS IS" BASIS, )==""\n"
16R"==(* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. )==""\n"
17R"==(* See the License for the specific language governing permissions and )==""\n"
18R"==(* limitations under the License. )==""\n"
19R"==(*******************************************************************************/ )==""\n"
20R"==(__kernel void simple_sum( )==""\n"
21R"==(__global float *input, __global float *output, float scale, int a) { )==""\n"
22R"==(const int c = get_global_id(0); )==""\n"
23R"==(if (a == 0) )==""\n"
24R"==(output[c] = (scale * input[c]); )==""\n"
25R"==(else )==""\n"
26R"==(output[c] += (scale * input[c]); )==""\n"
27R"==(} )==""\n"
28R"==()==";
29}
30}
31}
32}