38 bool is_allocatedHost;
41 cuArrays() : width(0),
height(0), size(0), countW(0), countH(0), count(0),
42 is_allocated(0), is_allocatedHost(0),
43 devData(0), hostData(0) {}
46 cuArrays(
size_t h,
size_t w) : width(w),
height(h), countH(1), countW(1), count(1),
47 is_allocated(0), is_allocatedHost(0),
48 devData(0), hostData(0)
54 cuArrays(
size_t h,
size_t w,
size_t n) : width(w),
height(h), countH(1), countW(n), count(n),
55 is_allocated(0), is_allocatedHost(0),
56 devData(0), hostData(0)
62 cuArrays(
size_t h,
size_t w,
size_t ch,
size_t cw) : width(w),
height(h), countW(cw), countH(ch),
63 is_allocated(0), is_allocatedHost(0),
64 devData(0), hostData(0)
67 count = countH*countW;
74 void deallocateHost();
77 void copyToHost(cudaStream_t stream);
78 void copyToDevice(cudaStream_t stream);
87 inline long getByteSize()
89 return width*
height*count*
sizeof(T);
102 void setZero(cudaStream_t stream);
104 void debuginfo(cudaStream_t stream) ;
105 void debuginfo(cudaStream_t stream,
float factor);
107 void outputToFile(std::string fn, cudaStream_t stream);
108 void outputHostToFile(std::string fn);
int height
x, row, down, length, azimuth, along the track
Definition cuArrays.h:28