[WIP] rearrange printed arguments
@@ -439,20 +439,27 @@ def _SimpleReductionKernel_get_cached_function(
params, arginfos, _kernel._TypeMap type_map,
name, block_size, identity, input_expr, output_expr, _preamble,
options):
- print("map_expr:", map_expr, type(map_expr), "\n")
- print("reduce_expr:", reduce_expr, type(reduce_expr), "\n")
- print("post_map_expr:", post_map_expr, type(post_map_expr), "\n")
+ print("name:", name, type(name), "\n")
+ print("block_size:", block_size, type(block_size), "\n")
print("reduce_type:", reduce_type, type(reduce_type), "\n")
print("params:", params, type(params), "\n")
print("arginfos:", arginfos, type(arginfos), "\n")
- print("type_map:", type_map, type(type_map), "\n")
- print("name:", name, type(name), "\n")
- print("block_size:", block_size, type(block_size), "\n")
print("identity:", identity, type(identity), "\n")
+
+ print("map_expr:", map_expr, type(map_expr), "\n")
+ print("reduce_expr:", reduce_expr, type(reduce_expr), "\n")
+ print("post_map_expr:", post_map_expr, type(post_map_expr), "\n")
+
+ print("type_map:", type_map, type(type_map), "\n")
print("input_expr:", input_expr, type(input_expr), "\n")
print("output_expr:", output_expr, type(output_expr), "\n")
print("_preamble:", _preamble, type(_preamble), "\n")
print("options:", options, type(options), "\n")
+
+ temp = _kernel._get_kernel_params(params, arginfos)
+ temp2 = type_map.get_typedef_code()
+ print("final params:", temp, type(temp), "\n")
+ print("type_preamble:", temp2, type(temp2), "\n")
return _create_reduction_function(
name, block_size, reduce_type, params, arginfos, identity,
map_expr, reduce_expr, post_map_expr,
