Esempio n. 1
0
        public override int GetMaxActionsToExecuteInParallel()
        {
            Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots();

            if (RemoteCPUCount == 0)
            {
                RemoteCPUCount = Environment.ProcessorCount;
            }
            return(RemoteCPUCount);
        }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
        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);
            }
        }