提交 6a02edf0 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merged

...@@ -193,6 +193,16 @@ def nvcc_module_compile_str( ...@@ -193,6 +193,16 @@ def nvcc_module_compile_str(
except ValueError, e: except ValueError, e:
done = True done = True
# The fix below was suggested by Nicolas Pinto:
# http://groups.google.com/group/theano-users/browse_thread/thread/c84bfe31bb411493
# TODO It is a bit hack-ish, is it possible to find a more generic fix?
# Remove last argument of python-config --ldflags if we are using
# MacPython 2.7.
fwk_str = 'Python.framework/Versions/2.7/Python'
if fwk_str in cmd:
cmd.pop(cmd.index(fwk_str))
#cmd.append("--ptxas-options=-v") #uncomment this to see register and shared-mem requirements #cmd.append("--ptxas-options=-v") #uncomment this to see register and shared-mem requirements
debug('Running cmd', ' '.join(cmd)) debug('Running cmd', ' '.join(cmd))
orig_dir = os.getcwd() orig_dir = os.getcwd()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论