We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4142eb5 commit 3d752f0Copy full SHA for 3d752f0
loopy/target/c/__init__.py
@@ -80,9 +80,10 @@ def dtype_to_ctype(self, dtype):
80
# {{{ preamble generator
81
82
def c99_preamble_generator(preamble_info):
83
+ from loopy.types import to_loopy_type
84
if any(dtype.is_integral() for dtype in preamble_info.seen_dtypes):
85
yield("10_stdint", "#include <stdint.h>")
- if any(dtype.numpy_dtype == np.dtype("bool")
86
+ if any(dtype == to_loopy_type(np.dtype("bool"))
87
for dtype in preamble_info.seen_dtypes):
88
yield("10_stdbool", "#include <stdbool.h>")
89
if any(dtype.is_complex() for dtype in preamble_info.seen_dtypes):
0 commit comments