rename my_sum to my_add
@@ -181,11 +181,11 @@ In other words, you have control over grid size, block size, shared memory size
>>> sum_kernel = cp.RawKernel(r'''
... extern "C" __global__
- ... void my_sum(const float* x1, const float* x2, float* y) {
+ ... void my_add(const float* x1, const float* x2, float* y) {
... int tid = blockDim.x * blockIdx.x + threadIdx.x;
... y[tid] = x1[tid] + x2[tid];
... }
- ... ''', 'my_sum')
+ ... ''', 'my_add')
>>> x1 = cupy.arange(25, dtype=cupy.float32).reshape(5, 5)
>>> x2 = cupy.arange(25, dtype=cupy.float32).reshape(5, 5)
>>> y = cupy.zeros((5, 5), dtype=cupy.float32)
