-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathsetup.py
36 lines (30 loc) · 1.08 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
import os
import torch
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CppExtension
cmdclass = {}
cmdclass['build_ext'] = BuildExtension
import setuptools
ext_modules = [
CppExtension(name='torch_blocksparse_cpp_utils',
sources=['csrc/utils.cpp'],
extra_compile_args={'cxx': ['-O2',
'-fopenmp']})
]
setuptools.setup(
name = 'torch-blocksparse',
version = '1.1.1',
description = 'Block-sparse primitives for PyTorch',
author = 'Philippe Tillet',
maintainer = 'Philippe Tillet',
maintainer_email = 'ptillet@g.harvard.edu',
install_requires = ['triton', 'torch'],
url = 'https://github.com/ptillet/torch-blocksparse',
test_suite = 'nose.collector',
tests_require = ['nose', 'parameterized'],
license = 'MIT',
packages = find_packages(exclude=["csrc"]),
ext_modules = ext_modules,
cmdclass = cmdclass
)