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

Make c code more redable.

上级 da378de8
...@@ -1132,6 +1132,8 @@ class GpuCAReduceCuda(HideC, CAReduceDtype): ...@@ -1132,6 +1132,8 @@ class GpuCAReduceCuda(HideC, CAReduceDtype):
'buf[threadNum]', 'buf[threadNum]',
'buf[threadNum+%d]' % num, 'buf[threadNum+%d]' % num,
sub) sub)
current_version += """
"""
current_version += """ current_version += """
if (threadNum == 0) if (threadNum == 0)
{ {
...@@ -1150,6 +1152,8 @@ class GpuCAReduceCuda(HideC, CAReduceDtype): ...@@ -1150,6 +1152,8 @@ class GpuCAReduceCuda(HideC, CAReduceDtype):
'buf[threadNum]','buf[threadNum+%d]' % num, 'buf[threadNum]','buf[threadNum+%d]' % num,
sub) sub)
current_version += this_if current_version += this_if
current_version += """
"""
current_version += """ current_version += """
if (threadNum == 0) if (threadNum == 0)
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论