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

Method ~DeviceDnVecInt

XM/include/Utils/memory.h:1037–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035 }
1036
1037 ~DeviceDnVecInt() {
1038 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
1039 if (this->vals != nullptr) {
1040 CHECK_CUDA( cudaFree(this->vals) );
1041 this->vals = nullptr;
1042 }
1043 // std::cout << "DeviceDnVecInt destructor called!" << std::endl;
1044 }
1045};
1046
1047// dense vector wrapper on device: long int type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected