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

Method set_gpu_id

XM/include/Utils/memory.h:127–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 DeviceSolverSpHandle(const size_s gpu_id): gpu_id(gpu_id), cusolver_sp_handle(NULL) {}
126
127 inline void set_gpu_id(const size_s gpu_id) {
128 this->gpu_id = gpu_id;
129 return;
130 }
131 inline void activate() {
132 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
133 CHECK_CUSOLVER( cusolverSpCreate(&this->cusolver_sp_handle) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected