Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Jan 21, 2025
1 parent 93909d5 commit 18b0cf2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <torch/extension.h>

#include "../../../../include/dtypes/alias.h"

void add_scalar_cuda(const torch::Tensor &x, const fp32 &y, torch::Tensor &output, const uint32 &BLOCK_SIZE);

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { m.def("add_scalar_cuda", &add_scalar_cuda, "Scalar addition (CUDA)"); }
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <torch/extension.h>

#include "../../../../include/dtypes/alias.h"

void add_tensor_cuda(const torch::Tensor &x, const torch::Tensor &y, torch::Tensor &output, const uint32 &BLOCK_SIZE);

PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { m.def("add_tensor_cuda", &add_tensor_cuda, "Tensor addition (CUDA)"); }
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <torch/extension.h>

#include "../../../include/dtypes/alias.h"

void continuous_count_cuda(const torch::Tensor &x,
torch::Tensor &output,
const uint32 &sm_count,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <torch/extension.h>

#include "../../../include/dtypes/alias.h"

void continuous_count_and_sort_cuda(const torch::Tensor &x,
torch::Tensor &count_output,
torch::Tensor &sorted_output,
Expand Down
2 changes: 2 additions & 0 deletions cute_kernels/kernels/swiglu/cuda_implementation/ops.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <torch/extension.h>

#include "../../../include/dtypes/alias.h"

void swiglu_forward_cuda(const torch::Tensor &gate,
const torch::Tensor &up,
torch::Tensor &output,
Expand Down

0 comments on commit 18b0cf2

Please sign in to comment.