From 9f902b146553aa35cf79e76bedd61aa67ed5af94 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 6 Sep 2024 06:00:44 +0000 Subject: [PATCH] fix viewable return --- cuda_py/cuda/py/_memoryview.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_py/cuda/py/_memoryview.pyx b/cuda_py/cuda/py/_memoryview.pyx index b45c9f02..ff9c765d 100644 --- a/cuda_py/cuda/py/_memoryview.pyx +++ b/cuda_py/cuda/py/_memoryview.pyx @@ -275,6 +275,6 @@ def viewable(tuple arg_indices): cdef int idx for idx in arg_indices: args[idx] = _GPUMemoryViewProxy(args[idx]) - func(*args, **kwargs) + return func(*args, **kwargs) return wrapped_func return wrapped_func_with_indices