You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------KERNEL: loopy_kernel---------------------------------------------------------------------------ARGUMENTS:out: type: np:dtype('float64'), shape: () out aspace: globala: type: np:dtype('float64'), shape: () in aspace: global---------------------------------------------------------------------------DOMAINS:{ [_0] : 0 <= _0 <= 2999 }---------------------------------------------------------------------------INAME TAGS:_0: None---------------------------------------------------------------------------INSTRUCTIONS:out = reduce(min, [_0], a) {id=insn}---------------------------------------------------------------------------===========================================================================failing translation unit during pre-schedule check:===========================================================================---------------------------------------------------------------------------KERNEL: loopy_kernel---------------------------------------------------------------------------ARGUMENTS:out: type: np:dtype('float64'), shape: () out aspace: globala: type: np:dtype('float64'), shape: () in aspace: global---------------------------------------------------------------------------DOMAINS:{ [_0] : 0 <= _0 <= 2999 }---------------------------------------------------------------------------INAME TAGS:_0: None---------------------------------------------------------------------------TEMPORARIES:acc__0: type: np:dtype('float64'), shape: () aspace: private---------------------------------------------------------------------------INSTRUCTIONS:↱ acc__0 = HUGE_VAL {id=insn__0_init}│ for _0└↱ acc__0 = m̲i̲n(acc__0, a) {id=insn__0_update} │ end _0 └ out = acc__0 {id=insn}---------------------------------------------------------------------------===========================================================================
Here's the error trace
Traceback (most recent call last):
File "/home/mitak2/env/lib/python3.10/site-packages/pymbolic/mapper/__init__.py", line 242, in __call__
return self._cache[cache_key]
KeyError: (<class 'pymbolic.primitives.Variable'>, Variable('HUGE_VAL'), (), ())
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/mitak2/cudagraph_pytato/loopy_hugeval.py", line 11, in <module>
lp.generate_code_v2(knl).device_code()
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/codegen/__init__.py", line 604, in generate_code_v2
program = linearize(program)
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/schedule/__init__.py", line 2197, in linearize
pre_schedule_checks(t_unit)
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/check.py", line 1234, in pre_schedule_checks
check_for_integer_subscript_indices(t_unit)
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/check.py", line 341, in check_for_integer_subscript_indices
_check_for_integer_subscript_indices_inner(clbl.subkernel,
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/check.py", line 322, in _check_for_integer_subscript_indices_inner
idx_int_checker(insn.expression, return_tuple=isinstance(insn,
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/type_inference.py", line 208, in __call__
result = super().__call__(
File "/home/mitak2/env/lib/python3.10/site-packages/pymbolic/mapper/__init__.py", line 244, in __call__
result = super().rec(expr, *args, **kwargs)
File "/home/mitak2/env/lib/python3.10/site-packages/pymbolic/mapper/__init__.py", line 153, in __call__
return method(expr, *args, **kwargs)
File "/home/mitak2/env/lib/python3.10/site-packages/loopy/type_inference.py", line 674, in map_variable
raise TypeInferenceFailure("name not known in type inference: %s"
loopy.diagnostic.TypeInferenceFailure: name not known in type inference: HUGE_VAL
The text was updated successfully, but these errors were encountered:
Here's the MWE
Here's the kernel
Here's the error trace
The text was updated successfully, but these errors were encountered: