-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (32 loc) · 847 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
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='voxel_to_pixel',
packages=['voxel_to_pixel'],
ext_modules=[
CUDAExtension(
name='voxel_to_pixel._C',
sources=[
'src/voxel_to_pixel.cpp',
'src/voxel_to_pixel_kernel.cu',
'src/voxel_to_pixel_backward_kernel.cu',
],
)
],
cmdclass={
'build_ext': BuildExtension
}
)
# from setuptools import setup
# from torch.utils.cpp_extension import BuildExtension, CUDAExtension
# setup(
# name='lltm',
# ext_modules=[
# CUDAExtension('lltm_cuda', [
# 'lltm_cuda.cpp',
# 'lltm_cuda_kernel.cu',
# ])
# ],
# cmdclass={
# 'build_ext': BuildExtension
# })