commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7698 - gnuradio/branches/developers/eb/gcell-multi-q/


From: eb
Subject: [Commit-gnuradio] r7698 - gnuradio/branches/developers/eb/gcell-multi-q/src/apps
Date: Thu, 14 Feb 2008 21:04:54 -0700 (MST)

Author: eb
Date: 2008-02-14 21:04:54 -0700 (Thu, 14 Feb 2008)
New Revision: 7698

Modified:
   gnuradio/branches/developers/eb/gcell-multi-q/src/apps/gen_script.py
Log:
script fixes

Modified: gnuradio/branches/developers/eb/gcell-multi-q/src/apps/gen_script.py
===================================================================
--- gnuradio/branches/developers/eb/gcell-multi-q/src/apps/gen_script.py        
2008-02-15 03:42:10 UTC (rev 7697)
+++ gnuradio/branches/developers/eb/gcell-multi-q/src/apps/gen_script.py        
2008-02-15 04:04:54 UTC (rev 7698)
@@ -18,6 +18,8 @@
                       help="emit oprofile commands")
     parser.add_option("-t", "--tag", default=None,
                       help="specify identifying tag used in generated 
filenames")
+    parser.add_option("-q", "--nqueues", type="int", default=None,
+                      help="number of queues to use")
     (options, args) = parser.parse_args()
     if len(args) != 0:
         parser.print_help()
@@ -58,18 +60,22 @@
 
     for udelay in (10, 50, 100, 200, 300, 500):
         for nspes in range(1, options.max_spes+1):
-            cmd = "./benchmark_nop -n %d -u %d -N %d\n" % (nspes, udelay, 
njobs[udelay])
+            if options.nqueues is None:
+                qcmd = ""
+            else:
+                qcmd =  " -q %d" % (options.nqueues,)
+            cmd = "./benchmark_nop -n %d -u %d -N %d%s\n" % (nspes, udelay, 
njobs[udelay], qcmd)
             f.write(cmd)
             f.write(cmd)
 
-    f.write(") 2>&1 | tee %s\n" % (make_fname('results'),))
+    f.write(") | tee %s\n" % (make_fname('results'),))
 
     if options.oprofile:
         f.write("opcontrol --dump\n")
         f.write("opcontrol --stop\n")
         f.write("opreport -l | head -100 > %s\n" % (make_fname('opreport'),))
 
-    f.write("./split_and_avg_results.py > %s\n" % (make_fname('summary'),))
+    f.write("./split_and_avg_results.py %s > %s\n" % (make_fname('results'), 
make_fname('summary'),))
 
 
 if __name__ == '__main__':





reply via email to

[Prev in Thread] Current Thread [Next in Thread]