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

Better comment organisation

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