Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang committed Jul 19, 2023
1 parent dafee80 commit 92a18e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/cuquantum_benchmarks/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class L2flush:
https://github.com/NVIDIA/nvbench/blob/main/nvbench/detail/l2flush.cuh.
"""
def __init__(self):
self.l2_size = 3 * cp.cuda.Device().attributes['L2CacheSize']
self.l2_size = cp.cuda.Device().attributes['L2CacheSize']
self.mem = cp.cuda.alloc(self.l2_size) if self.l2_size > 0 else None

def flush(self):
Expand Down

0 comments on commit 92a18e9

Please sign in to comment.