-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (24 loc) · 688 Bytes
/
Copy pathsetup.py
File metadata and controls
25 lines (24 loc) · 688 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
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name="flaggems",
ext_modules=[
CUDAExtension(
name="flaggems._C",
sources=[
"csrc/python_gems_funcs_everything.cc",
"csrc/core/triton_kernel.cc",
"csrc/kernels/add.cc",
"csrc/gems_generated/shim.add_kernel.cc",
],
extra_compile_args=[
"-Wno-unused-function",
"-std=c++17",
],
extra_link_args=[
"-lcuda",
],
),
],
cmdclass={"build_ext": BuildExtension},
)