提交 d4fbdddf authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Stop adding -L/usr/local/cuda/lib{,64} as argument to nvcc.

This was never needed and also causes the errors with fatbinwrap_65.
上级 a9553206
...@@ -254,13 +254,6 @@ class NVCC_compiler(object): ...@@ -254,13 +254,6 @@ class NVCC_compiler(object):
libs.append('cudart') libs.append('cudart')
lib_dirs = std_lib_dirs() + lib_dirs lib_dirs = std_lib_dirs() + lib_dirs
if cuda_root:
lib_dirs.append(os.path.join(cuda_root, 'lib'))
# from Benjamin Schrauwen April 14 2010
if sys.platform != 'darwin':
# OS X uses universal libraries
lib_dirs.append(os.path.join(cuda_root, 'lib64'))
if sys.platform != 'darwin': if sys.platform != 'darwin':
# sometimes, the linker cannot find -lpython so we need to tell it # sometimes, the linker cannot find -lpython so we need to tell it
......
...@@ -408,9 +408,6 @@ class CudaNdarrayType(Type): ...@@ -408,9 +408,6 @@ class CudaNdarrayType(Type):
def c_lib_dirs(self): def c_lib_dirs(self):
ret = [os.path.dirname(cuda_ndarray.__file__)] ret = [os.path.dirname(cuda_ndarray.__file__)]
cuda_root = config.cuda.root
if cuda_root:
ret.append(os.path.join(cuda_root, 'lib'))
return ret return ret
def c_libraries(self): def c_libraries(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论