Skip to content

Commit

Permalink
rename module (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank31398 authored Aug 7, 2024
1 parent f545648 commit b28f3e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel_hyperdrive/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def compile_helpers() -> None:
load_cpp_extension(
"vector_addition_cuda",
"khd",
sources=[
os.path.join(os.path.dirname(__file__), "vector_addition/cuda_kernel/vector_addition.cpp"),
os.path.join(os.path.dirname(__file__), "vector_addition/cuda_kernel/vector_addition.cu"),
Expand Down
4 changes: 2 additions & 2 deletions kernel_hyperdrive/vector_addition/cuda_kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

class _VectorAddition_CUDA(torch.autograd.Function):
def forward(ctx, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor:
import vector_addition_cuda
import khd

return vector_addition_cuda.vector_addition_forward(x, y)
return khd.vector_addition_forward(x, y)

def backward(ctx, output_grad: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
return output_grad, output_grad
Expand Down

0 comments on commit b28f3e8

Please sign in to comment.