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

Method activate

XM/include/Utils/memory.h:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 return;
60 }
61 inline void activate() {
62 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
63 CHECK_CUBLAS( cublasCreate_v2(&this->cublas_handle) );
64 return;
65 }
66 inline void activate(const DeviceStream& device_stream) {
67 assert(device_stream.gpu_id == this->gpu_id);
68 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected