Skip to content

Commit 154644c

Browse files
committed
Link to cudart_static
1 parent b2fa402 commit 154644c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cuda_bindings/setup.py

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

240240

241-
def prep_extensions(sources):
241+
def prep_extensions(sources, libraries=[]):
242242
pattern = sources[0]
243243
files = glob.glob(pattern)
244244
exts = []
@@ -251,7 +251,7 @@ def prep_extensions(sources):
251251
include_dirs=include_dirs,
252252
library_dirs=library_dirs,
253253
runtime_library_dirs=[],
254-
libraries=[],
254+
libraries=libraries,
255255
language="c++",
256256
extra_compile_args=extra_compile_args,
257257
)
@@ -319,7 +319,7 @@ def do_cythonize(extensions):
319319
]
320320

321321
for sources in sources_list:
322-
extensions += prep_extensions(sources)
322+
extensions += prep_extensions(sources, ["cudart_static"])
323323

324324
# ---------------------------------------------------------------------
325325
# Custom cmdclass extensions

0 commit comments

Comments
 (0)