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

Method set_gpu_id

XM/include/Utils/memory.h:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 DeviceSolverDnHandle(const size_s gpu_id): gpu_id(gpu_id), cusolver_dn_handle(NULL) {}
91
92 inline void set_gpu_id(const size_s gpu_id) {
93 this->gpu_id = gpu_id;
94 return;
95 }
96 inline void activate() {
97 CHECK_CUDA( cudaSetDevice(this->gpu_id) );
98 CHECK_CUSOLVER( cusolverDnCreate(&this->cusolver_dn_handle) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected