MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / ~DeviceDnVecFloat

Method ~DeviceDnVecFloat

XM/include/Utils/memory.h:1001–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected