提交 f4c3e9a2 authored 作者: James Bergstra's avatar James Bergstra

nvcc - continue from previous commit.

上级 42a7c2ea
...@@ -147,7 +147,7 @@ def nvcc_module_compile_str(module_name, src_code, location=None, include_dirs=[ ...@@ -147,7 +147,7 @@ def nvcc_module_compile_str(module_name, src_code, location=None, include_dirs=[
if p.returncode: if p.returncode:
# filter the output from the compiler # filter the output from the compiler
for l in stderr.split('\n'): for l in nvcc_stderr.split('\n'):
if not l: if not l:
continue continue
# filter out the annoying declaration warnings # filter out the annoying declaration warnings
...@@ -159,10 +159,10 @@ def nvcc_module_compile_str(module_name, src_code, location=None, include_dirs=[ ...@@ -159,10 +159,10 @@ def nvcc_module_compile_str(module_name, src_code, location=None, include_dirs=[
continue continue
except: except:
pass pass
print l print >> sys.stderr, l
print '===============================' print >> sys.stderr, '==============================='
for i, l in enumerate(src_code.split('\n')): for i, l in enumerate(src_code.split('\n')):
print i+1, l print >> sys.stderr, i+1, l
raise Exception('nvcc return status', p.returncode, 'for cmd', ' '.join(cmd)) raise Exception('nvcc return status', p.returncode, 'for cmd', ' '.join(cmd))
#touch the __init__ file #touch the __init__ file
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论