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

Method activate

XM/include/Utils/memory.h:166–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 return;
165 }
166 inline void activate() {
167 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
168 CHECK_CUSPARSE( cusparseCreate(&this->cusparse_handle) );
169 return;
170 }
171 inline void activate(const DeviceStream& device_stream) {
172 assert(device_stream.gpu_id == this->gpu_id);
173 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected