示例#1
0
        static int Run(string[] args)
        {
            Flags.Parse(System.Configuration.ConfigurationManager.AppSettings);

            args = Flags.Parse(args);

            if (ShowHelp.BooleanValue)
            {
                Console.Error.WriteLine(Usage);
                return(0);
            }

            LocalSubmission submission = new LocalSubmission(NumHosts, args, LocalJobDirectory);

            submission.Submit();
            return(submission.Join());
        }
示例#2
0
        private static int RunLocal(string[] args)
        {
            if (!File.Exists(args[0]))
            {
                Console.Error.WriteLine("Error: Naiad program {0} does not exist.", args[0]);
                Console.Error.WriteLine(Usage);
                return(1);
            }

            if (!LocalJobDirectory.IsSet)
            {
                LocalJobDirectory.Parse("LocalJobs");
            }
            LocalSubmission submission = new LocalSubmission(NumHosts, args, LocalJobDirectory);

            submission.Submit();
            return(submission.Join());
        }