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

Method activate

XM/include/Utils/memory.h:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 return;
32 }
33 inline void activate() {
34 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
35 CHECK_CUDA( cudaStreamCreateWithFlags(&this->stream, cudaStreamNonBlocking) );
36 }
37
38 ~DeviceStream() {
39 CHECK_CUDA( cudaSetDevice(this->gpu_id) );

Callers 2

XMtrustregionFunction · 0.45
checkeigFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected