提交 f88bb799 authored 作者: ziyuang's avatar ziyuang 提交者: Ziyuan

Resolved issue #2055

Remove the `double round(double)` in pymath.h for Win32 only by defining `HAVE_ROUND` via the `-D` switch of `nvcc`. The `double round(double x)` function is present in CUDA 6.5.13/6.0.37/5.5.22/5.5.11/4.1.28/4.0.17, so I think it's safe to remove the one in `pymath.h`.
上级 39e904c7
......@@ -313,6 +313,10 @@ class NVCC_compiler(object):
# add flags for Microsoft compiler to create .pdb files
preargs2.extend(['/Zi', '/MD'])
cmd.extend(['-Xlinker', '/DEBUG'])
# remove the complaints for the duplication of `double round(double)`
# in both math_functions.h and pymath.h,
# by not including the one in pymath.h
cmd.extend(['-D HAVE_ROUND'])
if local_bitwidth() == 64:
cmd.append('-m64')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论