fix opencl compile error
updates of self-version of aggregate functions