提交 9546a903 authored 作者: Martin Andrews's avatar Martin Andrews

Better comment organisation

上级 aa0f870e
......@@ -124,7 +124,8 @@ class GpuElemwise(HideC, Elemwise):
scal_out,
dict(fail='return;'))
# OpenCL implicitly has 'stdint' defs at the kernel compilation stage
# Translate types for scalar composite ops (except complex).
# NB: OpenCL implicitly has 'stdint' defs at the kernel compilation stage
support_code = "" if pygpu.get_default_context().kind == 'opencl' else """
#ifdef _MSC_VER
#define signed __int8 int8_t
......@@ -139,8 +140,7 @@ class GpuElemwise(HideC, Elemwise):
#include <stdint.h>
#endif
"""
# Translate types for scalar composite ops (except complex).
# Translate ga_ pseudo-types into their specific realizations
support_code += """
#define ga_bool uint8_t
#define ga_byte int8_t
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论