Skip to content

Commit 8d90ab2

Browse files
kashifsoumith
authored andcommitted
compile with cudart (pytorch#737)
1 parent bd53030 commit 8d90ab2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ def run(self):
275275
extra_link_args.append('-Wl,-rpath,' + cuda_lib_path)
276276
extra_compile_args += ['-DWITH_CUDA']
277277
extra_compile_args += ['-DCUDA_LIB_PATH=' + cuda_lib_path]
278+
main_libraries += ['cudart']
278279
main_link_args += [THC_LIB, THCS_LIB, THCUNN_LIB]
279280
main_sources += [
280281
"torch/csrc/cuda/Module.cpp",

0 commit comments

Comments
 (0)