| 164 | return; |
| 165 | } |
| 166 | inline void activate() { |
| 167 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 168 | CHECK_CUSPARSE( cusparseCreate(&this->cusparse_handle) ); |
| 169 | return; |
| 170 | } |
| 171 | inline void activate(const DeviceStream& device_stream) { |
| 172 | assert(device_stream.gpu_id == this->gpu_id); |
| 173 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected