| 969 | cusparseDnVecDescr_t cusparse_descr; |
| 970 | |
| 971 | DeviceDnVecFloat(): gpu_id(0), size(0), vals(nullptr), cusparse_descr(NULL) {} |
| 972 | DeviceDnVecFloat(const int gpu_id, const int size, bool as_byte = false): |
| 973 | gpu_id(gpu_id), size(size), vals(nullptr), cusparse_descr(NULL) { |
| 974 | this->allocate(this->gpu_id, this->size, as_byte); |