spla
auto_vector_eadd.hpp
Go to the documentation of this file.
1 // Copyright (c) 2021 - 2023 SparseLinearAlgebra
3 // Autogenerated file, do not modify
5 
6 #pragma once
7 
8 static const char source_vector_eadd[] = R"(
9 
10 
11 __kernel void dense_to_dense(__global TYPE* g_rx,
12  __global const TYPE* g_ux,
13  __global const TYPE* g_vx,
14  const uint n) {
15  const uint gid = get_global_id(0);
16  const uint gsize = get_global_size(0);
17 
18  for (uint i = gid; i < n; i += gsize) {
19  g_rx[i] = OP_BINARY(g_ux[i], g_vx[i]);
20  }
21 }
22 )";