     template <typename T>
     void sumCaller(const DevMem2D src, PtrStep buf, double* sum, int cn)
     {
-        using namespace sum;
+        using namespace sums;
         typedef typename SumType<T>::R R;
 
         dim3 threads, grid;

    template <typename T>
    void sqrSumMultipassCaller(const DevMem2D src, PtrStep buf, double* sum, int cn)
    {
        using namespace sum;
        typedef typename SumType<T>::R R;

        dim3 threads, grid;

    template <typename T>
    void sumMultipassCaller(const DevMem2D src, PtrStep buf, double* sum, int cn)
    {
        using namespace sums;
        typedef typename SumType<T>::R R;

        dim3 threads, grid;
