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

Method activate

XM/include/Utils/memory.h:131–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129 return;
130 }
131 inline void activate() {
132 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
133 CHECK_CUSOLVER( cusolverSpCreate(&this->cusolver_sp_handle) );
134 return;
135 }
136 inline void activate(const DeviceStream& device_stream) {
137 assert(device_stream.gpu_id == this->gpu_id);
138 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected