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

Method ~DeviceStream

XM/include/Utils/memory.h:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 ~DeviceStream() {
39 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
40 if (this->stream != NULL) {
41 CHECK_CUDA( cudaStreamDestroy(this->stream) );
42 this->stream = NULL;
43 }
44 // std::cout << "DeviceStream destructor called!" << std::endl;
45 }
46};
47
48// cublas handle wrapper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected