mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fixed bench.py, with the help of Device Assertions™!*
* Not actually a trademark
This commit is contained in:
parent
56404b629f
commit
383c0f1f9a
2
bench.py
2
bench.py
@ -108,7 +108,7 @@ class L2WriteCombining(PTXTest):
|
||||
self.scratch = np.zeros(self.block_size*ctx.ctas/4, np.uint64)
|
||||
self.times_bytes = np.zeros((4, ctx.threads), np.uint64, 'F')
|
||||
super(L2WriteCombining, self)._call(ctx, func,
|
||||
cuda.InOut(self.scratch), cuda.InOut(self.times_bytes))
|
||||
cuda.InOut(self.times_bytes), cuda.InOut(self.scratch))
|
||||
|
||||
def call_teardown(self, ctx):
|
||||
pm = lambda a: (np.mean(a), np.std(a) / np.sqrt(len(a)))
|
||||
|
Loading…
Reference in New Issue
Block a user