-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (23 loc) · 752 Bytes
/
setup.py
File metadata and controls
26 lines (23 loc) · 752 Bytes
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
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
if __name__ == "__main__":
setup(
name="isbnet",
version="1.0",
description="isbnet",
author="Tuan Ngo",
packages=["isbnet"],
package_data={"isbnet.ops": ["*/*.so"]},
ext_modules=[
CUDAExtension(
name="isbnet.ops.ops",
sources=[
"isbnet/ops/src/isbnet_api.cpp",
"isbnet/ops/src/isbnet_ops.cpp",
"isbnet/ops/src/cuda.cu",
],
extra_compile_args={"cxx": ["-g"], "nvcc": ["-O2"]},
)
],
cmdclass={"build_ext": BuildExtension},
)