提交 b31c5ec3 authored 作者: Frederic's avatar Frederic

print nvcc stdout after the code dump when there is a problem.

上级 a73dd646
...@@ -300,10 +300,6 @@ class NVCC_compiler(object): ...@@ -300,10 +300,6 @@ class NVCC_compiler(object):
finally: finally:
os.chdir(orig_dir) os.chdir(orig_dir)
if nvcc_stdout:
# this doesn't happen to my knowledge
print >> sys.stderr, "DEBUG: nvcc STDOUT", nvcc_stdout
for eline in nvcc_stderr.split('\n'): for eline in nvcc_stderr.split('\n'):
if not eline: if not eline:
continue continue
...@@ -334,11 +330,16 @@ class NVCC_compiler(object): ...@@ -334,11 +330,16 @@ class NVCC_compiler(object):
except Exception: except Exception:
pass pass
print >> sys.stderr, l print >> sys.stderr, l
print nvcc_stdout
raise Exception('nvcc return status', p.returncode, raise Exception('nvcc return status', p.returncode,
'for cmd', ' '.join(cmd)) 'for cmd', ' '.join(cmd))
elif config.cmodule.compilation_warning and nvcc_stdout: elif config.cmodule.compilation_warning and nvcc_stdout:
print nvcc_stdout print nvcc_stdout
if nvcc_stdout:
# this doesn't happen to my knowledge
print >> sys.stderr, "DEBUG: nvcc STDOUT", nvcc_stdout
#touch the __init__ file #touch the __init__ file
file(os.path.join(location, "__init__.py"), 'w').close() file(os.path.join(location, "__init__.py"), 'w').close()
return dlimport(lib_filename) return dlimport(lib_filename)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论