Hello,
Just a small intrusion, If you compute the integral image and than use a binary kernel with ones in the edges and all zeros everywhere else to compute the local sum, it should be the same as directly doing your convolution with all ones.
If you use a Gpu I don’t think you get any advantage at doing convolution this way.