Beispiel #1
0
        private GPUSummaryResult ParseSummaryResult()
        {
            System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
            customCulture.NumberFormat.NumberDecimalSeparator = ".";
            Thread.CurrentThread.CurrentCulture = customCulture;

            GPUSummaryResult result = new GPUSummaryResult();

            List <Dictionary <string, string> > summaryData = ResultParser(data, 2);

            if (summaryData.Count() == 1)
            {
                Dictionary <string, string> summery = summaryData.FirstOrDefault();
                if (summery.ContainsKey("ALGO"))
                {
                    result.algo = summery["ALGO"];
                }
            }

            return(result);
        }
Beispiel #2
0
 public void DoneCollectSummary(GPUSummaryResult summaryResult)
 {
     Program.WriteLine("Done Collecting Summary", false, true);
     this.result.summary = summaryResult;
     this.QueueWorker();
 }