| 999 | } |
| 1000 | |
| 1001 | ~DeviceDnVecFloat() { |
| 1002 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 1003 | if (this->vals != nullptr) { |
| 1004 | CHECK_CUDA( cudaFree(this->vals) ); |
| 1005 | this->vals = nullptr; |
| 1006 | } |
| 1007 | if (this->cusparse_descr != NULL) { |
| 1008 | CHECK_CUSPARSE( cusparseDestroyDnVec(this->cusparse_descr) ); |
| 1009 | this->cusparse_descr = NULL; |
| 1010 | } |
| 1011 | // std::cout << "DeviceDnVecFloat destructor called!" << std::endl; |
| 1012 | } |
| 1013 | }; |
| 1014 | |
| 1015 | // dense vector wrapper on device: int type |
nothing calls this directly
no outgoing calls
no test coverage detected