x[i] += y[j]

do this work? If not, just copy/paste most of the code from ielemwise2 here outside the loop, and keep the kernel call in the inner loop. That should be easy to do.