setup.py 394 Bytes
Newer Older
Hang Zhang's avatar
Hang Zhang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

setup(
    name='enclib_gpu',
    ext_modules=[
        CUDAExtension('enclib_gpu', [
            'operator.cpp',
            'encoding_kernel.cu',
            'syncbn_kernel.cu',
            'roi_align_kernel.cu',
            ]),
    ],
    cmdclass={
        'build_ext': BuildExtension
    })