forked from kzhangucsb/tt_quant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (19 loc) · 949 Bytes
/
Copy pathsetup.py
File metadata and controls
23 lines (19 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from setuptools import setup, Extension
from torch.utils import cpp_extension
setup(name='tt_nn_quant',
ext_modules=[
cpp_extension.CppExtension('tt_nn_quant',
['torch_wrap.cpp', 'tt_top.cpp', 'tt_contract.cpp', 'random.cpp'],
extra_compile_args=['-mavx2', '-g', '-D QUANTIZE']),
cpp_extension.CppExtension('tt_nn',
['torch_wrap.cpp', 'tt_top.cpp', 'tt_contract.cpp', 'random.cpp'],
extra_compile_args=['-mavx2', '-g'])
],
cmdclass={'build_ext': cpp_extension.BuildExtension},
extra_compile_args=['-mavx2'])
# setup(name='tt_nn',
# ext_modules=[cpp_extension.CppExtension('tt_nn',
# ['torch_wrap.cpp', 'tt_top.cpp', 'tt_contract.cpp', 'random.cpp'],
# extra_compile_args=['-mavx2', '-g'])],
# cmdclass={'build_ext': cpp_extension.BuildExtension},
# extra_compile_args=['-mavx2'])