-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (26 loc) · 675 Bytes
/
setup.py
File metadata and controls
27 lines (26 loc) · 675 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
27
from setuptools import setup
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
setup(
name="fused_ssim",
packages=['fused_ssim'],
ext_modules=[
CUDAExtension(
name="fused_ssim_cuda",
sources=[
"ssim.cu",
"ext.cpp"],
extra_compile_args={
"cxx": ["-O3"],
"nvcc": [
"-O3",
"--maxrregcount=32",
"--use_fast_math",
"-arch=sm_89", # Adjust for your GPU
]
}
)
],
cmdclass={
'build_ext': BuildExtension
}
)