-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (36 loc) · 975 Bytes
/
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
37
38
from distutils.core import setup
import setuptools
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
name = 'usmltransform'
version = '0.1'
release = '0.1.1'
setup(
name=name,
author='Sebastian Semper',
version=release,
include_package_data=True,
cmdclass={'build_ext': build_ext},
ext_modules=[
Extension(
"usmltransform.CudaBlockTwoLevelToeplitz",
sources=[
"usmltransform/CudaBlockTwoLevelToeplitz.pyx",
],
language="c++",
include_dirs=[
'/home/cuda/git/fastmat/fastmat',
'/home/cuda/git/fastmat/fastmat/core',
numpy.get_include()
],
libraries=[],
extra_link_args=[
'-lcuda',
'-lcudart',
'-lcufft',
'usmltransform/BlockTwoLevelKernel.o'
],
)
]
)