Skip to content

Commit d312dfc

Browse files
committed
Fixing a bug in refresh_memory
1 parent 43152ae commit d312dfc

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

kernel_tuner/backends/backend.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ class CompilerBackend(Backend):
9999
def __init__(self, iterations, compiler_options, compiler):
100100
pass
101101

102-
def refresh_memory(self, gpu_memory, host_arguments, should_sync):
103-
"""Refresh the GPU memory with the untouched host arguments."""
104-
for i, arg in enumerate(host_arguments):
105-
if should_sync[i]:
106-
self.memcpy_htod(self.allocations[i], arg)
107-
108102
@abstractmethod
109103
def cleanup_lib(self):
110104
"""Unload the previously loaded shared library"""

kernel_tuner/backends/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def memcpy_htod(self, dest, src):
412412
"""There is no memcpy_htod implemented for the compiler backend."""
413413
pass
414414

415-
def refresh_memory(self, arguments, should_sync):
415+
def refresh_memory(self, _, arguments, should_sync):
416416
"""Copy the preserved content of the output memory to used arrays."""
417417
for i, arg in enumerate(arguments):
418418
if should_sync[i]:

0 commit comments

Comments
 (0)