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

Method activate

XM/include/Utils/memory.h:96–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 return;
95 }
96 inline void activate() {
97 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
98 CHECK_CUSOLVER( cusolverDnCreate(&this->cusolver_dn_handle) );
99 return;
100 }
101 inline void activate(const DeviceStream& device_stream) {
102 assert(device_stream.gpu_id == this->gpu_id);
103 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected