-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (47 loc) · 1.23 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='slayerCuda',
ext_modules=[
CUDAExtension(
name='slayerCuda',
sources=[
'src/cuda/slayerKernels.cu'
],
depends=[
'src/cuda/spikeKernels.h',
'src/cuda/convKernels.h',
'src/cuda/shiftKernels.h'
],
extra_compile_args={
'cxx': ['-g'],
'nvcc': ['-arch=sm_60', '-O2', '-use_fast_math']
}
)
],
cmdclass={'build_ext': BuildExtension}
)
setup(
name='slayerLoihiCuda',
ext_modules=[
CUDAExtension(
name='slayerLoihiCuda',
sources=[
'src/cuda/slayerLoihiKernels.cu'
],
depends=[
'src/cuda/spikeLoihiKernels.h'
],
extra_compile_args={
'cxx': ['-g'],
'nvcc': ['-arch=sm_60', '-O2', '-use_fast_math']
}
)
],
cmdclass={'build_ext': BuildExtension}
)
setup(
name='slayerSNN',
packages = ['slayerSNN', 'slayerSNN.auto'],
package_dir = {'slayerSNN': 'src'},
)