Skip to content

Commit

Permalink
Tweak timing demo run scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedov committed Mar 12, 2015
1 parent 25e83ab commit f0ae794
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/timing/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
script_name = 'timing_demo.py'

w = csv.writer(sys.stdout)
for spikes in np.linspace(100, 10000, 10, dtype=int):
for spikes in np.linspace(500, 15000, 10, dtype=int):
average_throughput_list = []
total_throughput_list = []
runtime_list = []
for i in xrange(3):
for i in xrange(2):
out = subprocess.check_output(['python', script_name,
'-u', '2', '-s', str(spikes), '-g', '0', '-m', '500'])
'-u', '2', '-s', str(spikes), '-g', '0', '-m', '100'])
average_throughput, total_throughput, runtime = out.strip('()\n\"').split(', ')
average_throughput_list.append(float(average_throughput))
total_throughput_list.append(float(total_throughput))
Expand Down
6 changes: 3 additions & 3 deletions examples/timing/run_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
script_name = 'timing_demo_gpu.py'

w = csv.writer(sys.stdout)
for spikes in np.linspace(100, 10000, 10, dtype=int):
for spikes in np.linspace(500, 15000, 10, dtype=int):
average_throughput_list = []
total_throughput_list = []
runtime_list = []
for i in xrange(3):
for i in xrange(2):
out = subprocess.check_output(['python', script_name,
'-u', '2', '-s', str(spikes), '-g', '0', '-m', '500'])
'-u', '2', '-s', str(spikes), '-g', '0', '-m', '100'])
average_throughput, total_throughput, runtime = out.strip('()\n\"').split(', ')
average_throughput_list.append(float(average_throughput))
total_throughput_list.append(float(total_throughput))
Expand Down

0 comments on commit f0ae794

Please sign in to comment.