removing C++11 interface

This commit is contained in:
Philippe Tillet
2015-02-08 23:19:38 -05:00
parent 85fb438806
commit a6d7671831
21 changed files with 423 additions and 956 deletions

View File

@@ -218,11 +218,16 @@ def benchmark(template, symbolic):
raise ValueError("Template has too low occupancy")
else:
queue.models[template, atd.float32] = atd.model(template, queue)
x = atd.array(symbolic)
atd.synchronize(symbolic.context)
x, events, cache = atd.flush(symbolic)
atd.synchronize(symbolic.context)
return 1e-9*sum([e.end - e.start for e in events])
timings = []
current_time = 0
while current_time < 1e-3:
x, events, cache = atd.flush(symbolic)
atd.synchronize(symbolic.context)
timings.append(1e-9*sum([e.end - e.start for e in events]))
current_time = current_time + timings[-1]
return np.median(timings)
def sanitize_string(string, keep_chars = ['_']):