| 198 | } |
| 199 | |
| 200 | void TCudaManager::Start(const NCudaLib::TDeviceRequestConfig& config) { |
| 201 | CB_ENSURE(State == nullptr); |
| 202 | State.Reset(new TCudaManagerState()); |
| 203 | CB_ENSURE(!HasDevices()); |
| 204 | SetDevices(GetDevicesProvider().RequestDevices(config)); |
| 205 | if (config.EnablePeers) { |
| 206 | EnablePeers(); |
| 207 | State->PeersSupportEnabled = true; |
| 208 | } |
| 209 | CreateProfiler(); |
| 210 | } |
| 211 | |
| 212 | void TCudaManager::Stop() { |
| 213 | CB_ENSURE(!IsChildManager); |
no test coverage detected