Skip to content

Commit 6c4d859

Browse files
committed
Require GPU backends to implement copy to shared/texture the same way we do for constant. Can throw exception if not implemented.
1 parent c531162 commit 6c4d859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel_tuner/backends/backend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run_kernel(self, func, gpu_args, threads, grid, stream):
3737
@abstractmethod
3838
def memset(self, allocation, value, size):
3939
pass
40-
40+
4141
@abstractmethod
4242
def memcpy_dtoh(self, dest, src):
4343
pass
@@ -57,11 +57,11 @@ def __init__(self, device, iterations, compiler_options, observers):
5757
def copy_constant_memory_args(self, cmem_args):
5858
pass
5959

60-
# @abstractmethod
60+
@abstractmethod
6161
def copy_shared_memory_args(self, smem_args):
6262
pass
6363

64-
# @abstractmethod
64+
@abstractmethod
6565
def copy_texture_memory_args(self, texmem_args):
6666
pass
6767

0 commit comments

Comments
 (0)