We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caa5335 commit 19b422aCopy full SHA for 19b422a
1 file changed
src/numba/openmp/omp_ir.py
@@ -1489,7 +1489,13 @@ def add_mapped_to_ins(ins, tags):
1489
for eb in extras_before:
1490
print(eb)
1491
1492
- assert len(target_args) == len(target_args_unordered)
+ # NOTE: workaround for python 3.10 lowering in numba that may
1493
+ # include a branch converging variable $cp. Remove it to avoid the
1494
+ # assert since the openmp region must be single-entry, single-exit.
1495
+ if sys.version_info >= (3, 10) and sys.version_info < (3, 11):
1496
+ assert len(target_args) == len([x for x in target_args_unordered if x != "$cp"])
1497
+ else:
1498
+ assert len(target_args) == len(target_args_unordered)
1499
assert len(target_args) == len(outline_arg_typs)
1500
1501
# Create the outlined IR from the blocks in the region, making the
0 commit comments