2024-06-14 01:45:42 -06:00
|
|
|
from setuptools import setup
|
|
|
|
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
|
|
|
|
|
|
|
|
extra_compile_args = []
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name="marlin_kernels",
|
|
|
|
ext_modules=[
|
|
|
|
CUDAExtension(
|
|
|
|
name="marlin_kernels",
|
|
|
|
sources=[
|
2024-07-11 08:03:26 -06:00
|
|
|
"marlin_kernels/fp8_marlin.cu",
|
2024-06-14 01:45:42 -06:00
|
|
|
"marlin_kernels/gptq_marlin.cu",
|
|
|
|
"marlin_kernels/gptq_marlin_repack.cu",
|
|
|
|
"marlin_kernels/marlin_cuda_kernel.cu",
|
2024-06-25 13:09:42 -06:00
|
|
|
"marlin_kernels/sparse/marlin_24_cuda_kernel.cu",
|
2024-06-14 01:45:42 -06:00
|
|
|
"marlin_kernels/ext.cpp",
|
|
|
|
],
|
|
|
|
extra_compile_args=extra_compile_args,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
cmdclass={"build_ext": BuildExtension},
|
|
|
|
)
|