| 59 | return; |
| 60 | } |
| 61 | inline void activate() { |
| 62 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 63 | CHECK_CUBLAS( cublasCreate_v2(&this->cublas_handle) ); |
| 64 | return; |
| 65 | } |
| 66 | inline void activate(const DeviceStream& device_stream) { |
| 67 | assert(device_stream.gpu_id == this->gpu_id); |
| 68 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
nothing calls this directly
no outgoing calls
no test coverage detected