38 bool is_allocatedHost;
41 cuArrays() :
height(0), width(0), size(0), countH(0), countW(0), count(0),
42 devData(0), hostData(0),
43 is_allocated(0), is_allocatedHost(0) {}
46 cuArrays(
size_t h,
size_t w) :
height(h), width(w), countH(1), countW(1), count(1),
47 devData(0), hostData(0),
48 is_allocated(0), is_allocatedHost(0)
54 cuArrays(
size_t h,
size_t w,
size_t n) :
height(h), width(w), countH(1), countW(n), count(n),
55 devData(0), hostData(0),
56 is_allocated(0), is_allocatedHost(0)
62 cuArrays(
size_t h,
size_t w,
size_t ch,
size_t cw) :
height(h), width(w), countH(ch), countW(cw),
63 devData(0), hostData(0),
64 is_allocated(0), is_allocatedHost(0)
67 count = countH*countW;
74 void deallocateHost();
87 inline long getByteSize()
89 return width*
height*count*
sizeof(T);
105 void debuginfo(
float factor);
107 void outputToFile(std::string fn);
108 void outputHostToFile(std::string fn);