   ptrdiff_t size_;
 
 public:
+  static const int ndim = 0;
+
   __device__ int size() const {
     return size_;
   }

         i < (n); \
         i += blockDim.x * gridDim.x)

template <typename T, int ndim>
class CArray {
private:
  T* data_;
  ptrdiff_t size_;

  ptrdiff_t size_;

public:
  static const int ndim = 0;

  __device__ int size() const {
    return size_;
  }
