from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension


setup(
    name='assign_score_withk_ext',
    ext_modules=[
        CUDAExtension('assign_score_withk_ext', [
            'src/assign_score_withk.cpp',
            'src/assign_score_withk_cuda.cu'
        ],
            extra_compile_args={'cxx': ['-g'],
                                'nvcc': ['-O2']})
    ],
    cmdclass={'build_ext': BuildExtension}
)
