Skip to content

Commit 9e08cef

Browse files
committed
Link to cudart_static
1 parent a5e948b commit 9e08cef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_bindings/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def generate_output(infile, local):
265265
# Cythonize
266266

267267

268-
def prep_extensions(sources):
268+
def prep_extensions(sources, libraries=[]):
269269
pattern = sources[0]
270270
files = glob.glob(pattern)
271271
exts = []
@@ -278,7 +278,7 @@ def prep_extensions(sources):
278278
include_dirs=include_dirs,
279279
library_dirs=library_dirs,
280280
runtime_library_dirs=[],
281-
libraries=[],
281+
libraries=libraries,
282282
language="c++",
283283
extra_compile_args=extra_compile_args,
284284
)
@@ -346,7 +346,7 @@ def do_cythonize(extensions):
346346
]
347347

348348
for sources in sources_list:
349-
extensions += prep_extensions(sources)
349+
extensions += prep_extensions(sources, ["cudart_static"])
350350

351351
# ---------------------------------------------------------------------
352352
# Custom cmdclass extensions

0 commit comments

Comments
 (0)