| 135 | |
| 136 | |
| 137 | int 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 | |
| 152 | int gpu_getComputeCapability() { |
no test coverage detected