-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (50 loc) · 1.68 KB
/
Copy pathsetup.py
File metadata and controls
53 lines (50 loc) · 1.68 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
name='compactlogic',
version='0.1.0',
author='Shengpu Wang',
author_email='wangshen@ethz.ch',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/ShengpuWang1/compact-logic',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
package_dir={'compactlogic': 'compactlogic'},
packages=['compactlogic'],
ext_modules=[
CUDAExtension(
'difflogic_cuda',
[
'compactlogic/cuda/difflogic.cpp',
'compactlogic/cuda/difflogic_kernel.cu',
],
extra_compile_args={'nvcc': ['-lineinfo']}
),
CUDAExtension(
'convlogic_cuda',
[
'compactlogic/cuda/convlogic.cpp',
'compactlogic/cuda/convlogic_kernel.cu',
],
extra_compile_args={'nvcc': ['-lineinfo']}
),
],
cmdclass={'build_ext': BuildExtension},
python_requires='>=3.6',
install_requires=[
'torch>=1.6.0',
'numpy',
],
)