2025-07-18 11:32:22 +08:00
|
|
|
#include <pybind11/pybind11.h>
|
|
|
|
|
#include <torch/python.h>
|
|
|
|
|
|
2025-08-15 18:32:35 +08:00
|
|
|
#include "apis/gemm.hpp"
|
|
|
|
|
#include "apis/layout.hpp"
|
|
|
|
|
#include "apis/runtime.hpp"
|
2025-07-18 11:32:22 +08:00
|
|
|
|
|
|
|
|
#ifndef TORCH_EXTENSION_NAME
|
|
|
|
|
#define TORCH_EXTENSION_NAME deep_gemm_cpp
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// ReSharper disable once CppParameterMayBeConstPtrOrRef
|
|
|
|
|
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
|
|
|
|
m.doc() = "DeepGEMM C++ library";
|
|
|
|
|
|
2025-08-15 18:32:35 +08:00
|
|
|
deep_gemm::gemm::register_apis(m);
|
|
|
|
|
deep_gemm::layout::register_apis(m);
|
|
|
|
|
deep_gemm::runtime::register_apis(m);
|
2025-07-18 11:32:22 +08:00
|
|
|
}
|