public override int GetMaxActionsToExecuteInParallel() { Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots(); if (RemoteCPUCount == 0) { RemoteCPUCount = Environment.ProcessorCount; } return(RemoteCPUCount); }
public RemoteExecutor() { Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots(); if (RemoteCPUCount == 0) { RemoteCPUCount = Environment.ProcessorCount; } AdjustedProcessorCountMultiplierValue = (Double)RemoteCPUCount / (Double)Environment.ProcessorCount; Log.TraceVerbose("Adjusting the remote Mac compile process multiplier to " + AdjustedProcessorCountMultiplierValue.ToString()); }
static public Double GetAdjustedProcessorCountMultiplier() { if (BuildHostPlatform.Current.Platform != UnrealTargetPlatform.Mac) { Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots(); if (RemoteCPUCount == 0) { RemoteCPUCount = Environment.ProcessorCount; } Double AdjustedMultiplier = (Double)RemoteCPUCount / (Double)Environment.ProcessorCount; Log.TraceVerbose("Adjusting the remote Mac compile process multiplier to " + AdjustedMultiplier.ToString()); return(AdjustedMultiplier); } else { return(1.0); } }