MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getBoundGpuId

Function getBoundGpuId

quest/src/gpu/gpu_config.cpp:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136
137int getBoundGpuId() {
138#if COMPILE_CUDA
139 assert_gpuHasBeenBound(hasGpuBeenBound);
140
141 int id;
142 CUDA_CHECK( cudaGetDevice(&id) );
143 return id;
144
145#else
146 error_gpuQueriedButGpuNotCompiled();
147 return -1;
148#endif
149}
150
151
152int gpu_getComputeCapability() {

Callers 4

gpu_getComputeCapabilityFunction · 0.85
getBoundGpuUuidFunction · 0.85

Calls 2

assert_gpuHasBeenBoundFunction · 0.85

Tested by

no test coverage detected