| 44 | } |
| 45 | |
| 46 | void TSystemOptions::Validate() const { |
| 47 | CB_ENSURE(NumThreads > 0, "thread count should be positive"); |
| 48 | CB_ENSURE(GpuRamPart.GetUnchecked() > 0 && GpuRamPart.GetUnchecked() <= 1.0, "GPU ram part should be in (0, 1]"); |
| 49 | ParseMemorySizeDescription(CpuUsedRamLimit.Get()); |
| 50 | ParseMemorySizeDescription(PinnedMemorySize.GetUnchecked()); |
| 51 | } |
| 52 | |
| 53 | bool TSystemOptions::IsMaster() const { |
| 54 | return NodeType == ENodeType::Master; |
nothing calls this directly
no test coverage detected