after_merge stringlengths 28 79.6k | before_merge stringlengths 20 79.6k | url stringlengths 38 71 | full_traceback stringlengths 43 922k | traceback_type stringclasses 555
values |
|---|---|---|---|---|
def _make_list(itemty, allocated=DEFAULT_ALLOCATED):
return listobject._as_meminfo(listobject.new_list(itemty, allocated=allocated))
| def _make_list(itemty, allocated=0):
return listobject._as_meminfo(listobject.new_list(itemty, allocated=allocated))
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def _allocated(self):
if not self._typed:
return DEFAULT_ALLOCATED
else:
return _allocated(self)
| def _allocated(self):
if not self._typed:
return 0
else:
return _allocated(self)
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def __new__(cls, lsttype=None, meminfo=None, allocated=DEFAULT_ALLOCATED):
if config.DISABLE_JIT:
return list.__new__(list)
else:
return object.__new__(cls)
| def __new__(cls, lsttype=None, meminfo=None, allocated=None):
if config.DISABLE_JIT:
return list.__new__(list)
else:
return object.__new__(cls)
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def empty_list(cls, item_type, allocated=DEFAULT_ALLOCATED):
"""Create a new empty List.
Parameters
----------
item_type: Numba type
type of the list item.
allocated: int
number of items to pre-allocate
"""
if config.DISABLE_JIT:
return list()
else:
retur... | def empty_list(cls, item_type, allocated=0):
"""Create a new empty List.
Parameters
----------
item_type: Numba type
type of the list item.
allocated: int
number of items to pre-allocate
"""
if config.DISABLE_JIT:
return list()
else:
return cls(lsttype=Li... | https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def _parse_arg(self, lsttype, meminfo=None, allocated=DEFAULT_ALLOCATED):
if not isinstance(lsttype, ListType):
raise TypeError("*lsttype* must be a ListType")
if meminfo is not None:
opaque = meminfo
else:
opaque = _make_list(lsttype.item_type, allocated=allocated)
return lstty... | def _parse_arg(self, lsttype, meminfo=None, allocated=0):
if not isinstance(lsttype, ListType):
raise TypeError("*lsttype* must be a ListType")
if meminfo is not None:
opaque = meminfo
else:
opaque = _make_list(lsttype.item_type, allocated=allocated)
return lsttype, opaque
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def typedlist_empty(cls, item_type, allocated=DEFAULT_ALLOCATED):
if cls.instance_type is not ListType:
return
def impl(cls, item_type, allocated=DEFAULT_ALLOCATED):
return listobject.new_list(item_type, allocated=allocated)
return impl
| def typedlist_empty(cls, item_type):
if cls.instance_type is not ListType:
return
def impl(cls, item_type):
return listobject.new_list(item_type)
return impl
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def impl(cls, item_type, allocated=DEFAULT_ALLOCATED):
return listobject.new_list(item_type, allocated=allocated)
| def impl(cls, item_type):
return listobject.new_list(item_type)
| https://github.com/numba/numba/issues/5355 | ======================================================================
ERROR: test_numba_typed_list_allocated (sdc.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\akozlov\AppData\Local\Continuum\anaconda3\hpat\sdc\tes... | numba.errors.TypingError |
def impl_extend(l, iterable):
if not isinstance(l, types.ListType):
return
if not isinstance(iterable, types.IterableType):
raise TypingError("extend argument must be iterable")
_check_for_none_typed(l, "extend")
def select_impl():
if isinstance(iterable, types.ListType):
... | def impl_extend(l, iterable):
if not isinstance(l, types.ListType):
return
if not isinstance(iterable, types.IterableType):
raise TypingError("extend argument must be iterable")
_check_for_none_typed(l, "extend")
def select_impl():
if isinstance(iterable, types.ListType):
... | https://github.com/numba/numba/issues/5289 | Traceback (most recent call last):
File "/Users/vhaenel/git/numba/numba/core/typeinfer.py", line 149, in propagate
constraint(typeinfer)
File "/Users/vhaenel/git/numba/numba/core/typeinfer.py", line 486, in __call__
self.resolve(typeinfer, typevars, fnty)
File "/Users/vhaenel/git/numba/numba/core/typeinfer.py", line 50... | numba.core.errors.TypingError |
def _lower_parfor_parallel(lowerer, parfor):
"""Lowerer that handles LLVM code generation for parfor.
This function lowers a parfor IR node to LLVM.
The general approach is as follows:
1) The code from the parfor's init block is lowered normally
in the context of the current function.
2) The ... | def _lower_parfor_parallel(lowerer, parfor):
"""Lowerer that handles LLVM code generation for parfor.
This function lowers a parfor IR node to LLVM.
The general approach is as follows:
1) The code from the parfor's init block is lowered normally
in the context of the current function.
2) The ... | https://github.com/numba/numba/issues/5098 | Traceback (most recent call last):
File "/home/ibutygin/src/numba/numba/numba/errors.py", line 717, in new_error_context
yield
File "/home/ibutygin/src/numba/numba/numba/lowering.py", line 288, in lower_block
self.lower_inst(inst)
File "/home/ibutygin/src/numba/numba/numba/lowering.py", line 476, in lower_inst
func(sel... | AssertionError |
def run(self):
"""run parfor conversion pass: replace Numpy calls
with Parfors when possible and optimize the IR."""
# run array analysis, a pre-requisite for parfor translation
remove_dels(self.func_ir.blocks)
self.array_analysis.run(self.func_ir.blocks)
# run stencil translation to parfor
... | def run(self):
"""run parfor conversion pass: replace Numpy calls
with Parfors when possible and optimize the IR."""
# run array analysis, a pre-requisite for parfor translation
remove_dels(self.func_ir.blocks)
self.array_analysis.run(self.func_ir.blocks)
# run stencil translation to parfor
... | https://github.com/numba/numba/issues/4903 | ---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs)
716 try:
--> 717 yield
718 except NumbaError as e:
... | AssertionError |
def _arrayexpr_tree_to_ir(
func_ir,
typingctx,
typemap,
calltypes,
equiv_set,
init_block,
expr_out_var,
expr,
parfor_index_tuple_var,
all_parfor_indices,
avail_vars,
):
"""generate IR from array_expr's expr tree recursively. Assign output to
expr_out_var and returns t... | def _arrayexpr_tree_to_ir(
func_ir,
typingctx,
typemap,
calltypes,
equiv_set,
init_block,
expr_out_var,
expr,
parfor_index_tuple_var,
all_parfor_indices,
avail_vars,
):
"""generate IR from array_expr's expr tree recursively. Assign output to
expr_out_var and returns t... | https://github.com/numba/numba/issues/4903 | ---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs)
716 try:
--> 717 yield
718 except NumbaError as e:
... | AssertionError |
def push_call_vars(blocks, saved_globals, saved_getattrs, typemap, nested=False):
"""push call variables to right before their call site.
assuming one global/getattr is created for each call site and control flow
doesn't change it.
"""
for block in blocks.values():
new_body = []
# gl... | def push_call_vars(blocks, saved_globals, saved_getattrs, nested=False):
"""push call variables to right before their call site.
assuming one global/getattr is created for each call site and control flow
doesn't change it.
"""
for block in blocks.values():
new_body = []
# global/attr... | https://github.com/numba/numba/issues/4903 | ---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs)
716 try:
--> 717 yield
718 except NumbaError as e:
... | AssertionError |
def _get_saved_call_nodes(
fname, saved_globals, saved_getattrs, block_defs, rename_dict
):
"""Implement the copying of globals or getattrs for the purposes noted in
push_call_vars. We make a new var and assign to it a copy of the
global or getattr. We remember this new assignment node and add an
... | def _get_saved_call_nodes(fname, saved_globals, saved_getattrs, block_defs):
nodes = []
while fname not in block_defs and (
fname in saved_globals or fname in saved_getattrs
):
if fname in saved_globals:
nodes.append(saved_globals[fname])
block_defs.add(saved_globals[... | https://github.com/numba/numba/issues/4903 | ---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/numba/errors.py in new_error_context(fmt_, *args, **kwargs)
716 try:
--> 717 yield
718 except NumbaError as e:
... | AssertionError |
def wrap_index(typingctx, idx, size):
"""
Calculate index value "idx" relative to a size "size" value as
(idx % size), where "size" is known to be positive.
Note that we use the mod(%) operation here instead of
(idx < 0 ? idx + size : idx) because we may have situations
where idx > size due to t... | def wrap_index(typingctx, idx, size):
"""
Calculate index value "idx" relative to a size "size" value as
(idx % size), where "size" is known to be positive.
Note that we use the mod(%) operation here instead of
(idx < 0 ? idx + size : idx) because we may have situations
where idx > size due to t... | https://github.com/numba/numba/issues/5056 | Traceback (most recent call last):
File "/home/phil/.PyCharm2019.3/config/scratches/scratch_1.py", line 12, in <module>
test(np.array([.3, .4, .5, .6]),np.array([0, 2, 4], dtype=np.int32))
File "/usr/lib/python3.8/site-packages/numba/dispatcher.py", line 401, in _compile_for_args
error_rewrite(e, 'typing')
File "/usr/l... | numba.errors.TypingError |
def codegen(context, builder, sig, args):
ll_unified_ty = context.get_data_type(unified_ty)
idx = builder.sext(args[0], ll_unified_ty)
size = builder.sext(args[1], ll_unified_ty)
neg_size = builder.neg(size)
zero = llvmlite.ir.Constant(ll_unified_ty, 0)
idx_negative = builder.icmp_signed("<", id... | def codegen(context, builder, sig, args):
"""
assert(len(args) == 2)
idx = args[0]
size = args[1]
rem = builder.srem(idx, size)
zero = llvmlite.ir.Constant(idx.type, 0)
is_negative = builder.icmp_signed('<', rem, zero)
wrapped_rem = builder.add(rem, size)
is_oversize = builder.icmp_s... | https://github.com/numba/numba/issues/5056 | Traceback (most recent call last):
File "/home/phil/.PyCharm2019.3/config/scratches/scratch_1.py", line 12, in <module>
test(np.array([.3, .4, .5, .6]),np.array([0, 2, 4], dtype=np.int32))
File "/usr/lib/python3.8/site-packages/numba/dispatcher.py", line 401, in _compile_for_args
error_rewrite(e, 'typing')
File "/usr/l... | numba.errors.TypingError |
def resolve(self, typeinfer, typevars, fnty):
assert fnty
context = typeinfer.context
r = fold_arg_vars(typevars, self.args, self.vararg, self.kws)
if r is None:
# Cannot resolve call type until all argument types are known
return
pos_args, kw_args = r
# Check argument to be pr... | def resolve(self, typeinfer, typevars, fnty):
assert fnty
context = typeinfer.context
r = fold_arg_vars(typevars, self.args, self.vararg, self.kws)
if r is None:
# Cannot resolve call type until all argument types are known
return
pos_args, kw_args = r
# Check argument to be pr... | https://github.com/numba/numba/issues/5011 | ======================================================================
ERROR: test_literally_with_overload_method (tests.test_hpat_jit.TestHpatJitIssues)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/data/hpat_fork/hpat_2/sdc/tests/test_hpat_jit.py"... | numba.errors.TypingError |
def fold_argument_types(self, args, kws):
"""
Given positional and named argument types, fold keyword arguments
and resolve defaults by inserting types.Omitted() instances.
A (pysig, argument types) tuple is returned.
"""
def normal_handler(index, param, value):
return value
def d... | def fold_argument_types(self, args, kws):
"""
Given positional and named argument types, fold keyword arguments
and resolve defaults by inserting types.Omitted() instances.
A (pysig, argument types) tuple is returned.
"""
def normal_handler(index, param, value):
return value
def d... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def stararg_handler(index, param, values):
return types.StarArgTuple(values)
| def stararg_handler(index, param, values):
return types.Tuple(values)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __init__(self, dtype, count):
self.dtype = dtype
self.count = count
name = "%s(%s x %d)" % (
self.__class__.__name__,
dtype,
count,
)
super(UniTuple, self).__init__(name)
| def __init__(self, dtype, count):
self.dtype = dtype
self.count = count
name = "UniTuple(%s x %d)" % (dtype, count)
super(UniTuple, self).__init__(name)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __init__(self, types):
self.types = tuple(types)
self.count = len(self.types)
self.dtype = UnionType(types)
name = "%s(%s)" % (
self.__class__.__name__,
", ".join(str(i) for i in self.types),
)
super(Tuple, self).__init__(name)
| def __init__(self, types):
self.types = tuple(types)
self.count = len(self.types)
self.dtype = UnionType(types)
name = "Tuple(%s)" % ", ".join(str(i) for i in self.types)
super(Tuple, self).__init__(name)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __new__(cls, types):
_HeterogeneousTuple.is_types_iterable(types)
if types and all(t == types[0] for t in types[1:]):
return StarArgUniTuple(dtype=types[0], count=len(types))
else:
return object.__new__(StarArgTuple)
| def __new__(cls, types):
_HeterogeneousTuple.is_types_iterable(types)
if types and all(t == types[0] for t in types[1:]):
return UniTuple(dtype=types[0], count=len(types))
else:
return object.__new__(Tuple)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def fold_arguments(pysig, args, kws, normal_handler, default_handler, stararg_handler):
"""
Given the signature *pysig*, explicit *args* and *kws*, resolve
omitted arguments and keyword arguments. A tuple of positional
arguments is returned.
Various handlers allow to process arguments:
- normal_... | def fold_arguments(pysig, args, kws, normal_handler, default_handler, stararg_handler):
"""
Given the signature *pysig*, explicit *args* and *kws*, resolve
omitted arguments and keyword arguments. A tuple of positional
arguments is returned.
Various handlers allow to process arguments:
- normal_... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def compute_live_variables(cfg, blocks, var_def_map, var_dead_map):
"""
Compute the live variables at the beginning of each block
and at each yield point.
The ``var_def_map`` and ``var_dead_map`` indicates the variable defined
and deleted at each block, respectively.
"""
# live var at the en... | def compute_live_variables(cfg, blocks, var_def_map, var_dead_map):
"""
Compute the live variables at the beginning of each block
and at each yield point.
The ``var_def_map`` and ``var_dead_map`` indicates the variable defined
and deleted at each block, respectively.
"""
# live var at the en... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def find_top_level_loops(cfg):
"""
A generator that yields toplevel loops given a control-flow-graph
"""
blocks_in_loop = set()
# get loop bodies
for loop in cfg.loops().values():
insiders = set(loop.body) | set(loop.entries) | set(loop.exits)
insiders.discard(loop.header)
... | def find_top_level_loops(cfg):
"""
A generator that yields toplevel loops given a control-flow-graph
"""
blocks_in_loop = set()
# get loop bodies
for loop in cfg.loops().values():
insiders = set(loop.body) | set(loop.entries) | set(loop.exits)
insiders.discard(loop.header)
... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def wrap_index(typingctx, idx, size):
"""
Calculate index value "idx" relative to a size "size" value as
(idx % size), where "size" is known to be positive.
Note that we use the mod(%) operation here instead of
(idx < 0 ? idx + size : idx) because we may have situations
where idx > size due to t... | def wrap_index(typingctx, idx, size):
"""
Calculate index value "idx" relative to a size "size" value as
(idx % size), where "size" is known to be positive.
Note that we use the mod(%) operation here instead of
(idx < 0 ? idx + size : idx) because we may have situations
where idx > size due to t... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def codegen(context, builder, sig, args):
"""
assert(len(args) == 2)
idx = args[0]
size = args[1]
rem = builder.srem(idx, size)
zero = llvmlite.ir.Constant(idx.type, 0)
is_negative = builder.icmp_signed('<', rem, zero)
wrapped_rem = builder.add(rem, size)
is_oversize = builder.icmp_s... | def codegen(context, builder, sig, args):
assert len(args) == 2
idx = args[0]
size = args[1]
rem = builder.srem(idx, size)
zero = llvmlite.ir.Constant(idx.type, 0)
is_negative = builder.icmp_signed("<", rem, zero)
wrapped_rem = builder.add(rem, size)
is_oversize = builder.icmp_signed(">"... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _insert(self, objs):
"""Base method that inserts a set of equivalent objects by modifying
self.
"""
assert len(objs) > 1
inds = tuple(self._get_or_add_ind(x) for x in objs)
ind = min(inds)
if config.DEBUG_ARRAY_OPT >= 2:
print("_insert:", objs, inds)
if not (ind in self.in... | def _insert(self, objs):
"""Base method that inserts a set of equivalent objects by modifying
self.
"""
assert len(objs) > 1
inds = tuple(self._get_or_add_ind(x) for x in objs)
ind = min(inds)
if not (ind in self.ind_to_obj):
self.ind_to_obj[ind] = []
for i, obj in zip(inds, o... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def run(self, blocks=None, equiv_set=None):
"""run array shape analysis on the given IR blocks, resulting in
modified IR and finalized EquivSet for each block.
"""
if blocks == None:
blocks = self.func_ir.blocks
self.func_ir._definitions = build_definitions(self.func_ir.blocks)
if equi... | def run(self, blocks=None, equiv_set=None):
"""run array shape analysis on the given IR blocks, resulting in
modified IR and finalized EquivSet for each block.
"""
if blocks == None:
blocks = self.func_ir.blocks
self.func_ir._definitions = build_definitions(self.func_ir.blocks)
if equi... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _analyze_inst(self, label, scope, equiv_set, inst, redefined):
pre = []
post = []
if config.DEBUG_ARRAY_OPT >= 2:
print("analyze_inst:", inst)
if isinstance(inst, ir.Assign):
lhs = inst.target
typ = self.typemap[lhs.name]
shape = None
if isinstance(typ, types.... | def _analyze_inst(self, label, scope, equiv_set, inst, redefined):
pre = []
post = []
if isinstance(inst, ir.Assign):
lhs = inst.target
typ = self.typemap[lhs.name]
shape = None
if isinstance(typ, types.ArrayCompatible) and typ.ndim == 0:
shape = ()
elif i... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def gen_explicit_neg(
self, arg, arg_rel, arg_typ, size_typ, loc, scope, dsize, stmts, equiv_set
):
assert not isinstance(size_typ, int)
# Create var to hold the calculated slice size.
explicit_neg_var = ir.Var(scope, mk_unique_var("explicit_neg"), loc)
explicit_neg_val = ir.Expr.binop(operator.add,... | def gen_explicit_neg(
self, arg, arg_rel, arg_typ, size_typ, loc, scope, dsize, stmts, equiv_set
):
# Create var to hold the calculated slice size.
explicit_neg_var = ir.Var(scope, mk_unique_var("explicit_neg"), loc)
explicit_neg_val = ir.Expr.binop(operator.add, dsize, arg, loc=loc)
# Determine the... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def slice_size(self, index, dsize, equiv_set, scope, stmts):
"""Reason about the size of a slice represented by the "index"
variable, and return a variable that has this size data, or
raise GuardException if it cannot reason about it.
The computation takes care of negative values used in the slice
... | def slice_size(self, index, dsize, equiv_set, scope, stmts):
"""Reason about the size of a slice represented by the "index"
variable, and return a variable that has this size data, or
raise GuardException if it cannot reason about it.
The computation takes care of negative values used in the slice
... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _analyze_op_build_tuple(self, scope, equiv_set, expr):
consts = []
for var in expr.items:
x = guard(find_const, self.func_ir, var)
if x is not None:
consts.append(x)
else:
break
else:
out = tuple([ir.Const(x, expr.loc) for x in consts])
ret... | def _analyze_op_build_tuple(self, scope, equiv_set, expr):
return tuple(expr.items), []
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _make_assert_equiv(self, scope, loc, equiv_set, _args, names=None):
# filter out those that are already equivalent
if config.DEBUG_ARRAY_OPT >= 2:
print("make_assert_equiv:", _args, names)
if names == None:
names = [x.name for x in _args]
args = []
arg_names = []
for name, x ... | def _make_assert_equiv(self, scope, loc, equiv_set, _args, names=None):
# filter out those that are already equivalent
if names == None:
names = [x.name for x in _args]
args = []
arg_names = []
for name, x in zip(names, _args):
seen = False
for y in args:
if equiv... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def run(self):
"""Run a trace over the bytecode over all reachable path.
The trace starts at bytecode offset 0 and gathers stack and control-
flow information by partially interpreting each bytecode.
Each ``State`` instance in the trace corresponds to a basic-block.
The State instances forks when a... | def run(self):
"""Run a trace over the bytecode over all reachable path.
The trace starts at bytecode offset 0 and gathers stack and control-
flow information by partially interpreting each bytecode.
Each ``State`` instance in the trace corresponds to a basic-block.
The State instances forks when a... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __init__(self, debug_filename):
self.debug_filename = debug_filename
self.pending = deque()
self.finished = set()
| def __init__(self, debug_filename):
self.debug_filename = debug_filename
self.pending = []
self.finished = set()
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def dispatch(self, state):
inst = state.get_inst()
_logger.debug("dispatch pc=%s, inst=%s", state._pc, inst)
_logger.debug("stack %s", state._stack)
fn = getattr(self, "op_{}".format(inst.opname), None)
if fn is not None:
fn(state, inst)
else:
msg = "Use of unsupported opcode (%s... | def dispatch(self, state):
inst = state.get_inst()
_logger.debug("dispatch pc=%s, inst=%s", state._pc, inst)
fn = getattr(self, "op_{}".format(inst.opname), None)
if fn is not None:
fn(state, inst)
else:
msg = "Use of unsupported opcode (%s) found" % inst.opname
raise Unsuppo... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_BREAK_LOOP(self, state, inst):
# NOTE: bytecode removed since py3.8
end = state.get_top_block("LOOP")["end"]
state.append(inst, end=end)
state.pop_block()
state.fork(pc=end)
| def op_BREAK_LOOP(self, state, inst):
# NOTE: bytecode removed since py3.8
end = state.get_top_block("loop")["end"]
state.append(inst, end=end)
state.pop_block()
state.fork(pc=end)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_RAISE_VARARGS(self, state, inst):
in_exc_block = any(
[
state.get_top_block("EXCEPT") is not None,
state.get_top_block("FINALLY") is not None,
]
)
if inst.arg == 0:
exc = None
if in_exc_block:
raise UnsupportedError(
... | def op_RAISE_VARARGS(self, state, inst):
if inst.arg == 0:
exc = None
elif inst.arg == 1:
exc = state.pop()
else:
raise ValueError("Multiple argument raise is not supported.")
state.append(inst, exc=exc)
state.terminate()
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_BEGIN_FINALLY(self, state, inst):
temps = []
for i in range(_EXCEPT_STACK_OFFSET):
tmp = state.make_temp()
temps.append(tmp)
state.push(tmp)
state.append(inst, temps=temps)
| def op_BEGIN_FINALLY(self, state, inst):
res = state.make_temp() # unused
state.push(res)
state.append(inst, state=res)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_END_FINALLY(self, state, inst):
blk = state.pop_block()
state.reset_stack(blk["entry_stack"])
| def op_END_FINALLY(self, state, inst):
state.append(inst)
# actual bytecode has stack_effect of -6
# we don't emulate the exact stack behavior
state.pop() # unsure but seems to work
state.pop() # unsure but seems to work
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_SETUP_LOOP(self, state, inst):
# NOTE: bytecode removed since py3.8
state.push_block(
state.make_block(
kind="LOOP",
end=inst.get_jump_target(),
)
)
| def op_SETUP_LOOP(self, state, inst):
# NOTE: bytecode removed since py3.8
state.push_block(
{
"kind": "loop",
"end": inst.get_jump_target(),
}
)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_SETUP_WITH(self, state, inst):
cm = state.pop() # the context-manager
yielded = state.make_temp()
state.append(inst, contextmanager=cm)
state.push_block(
state.make_block(
kind="WITH_FINALLY",
end=inst.get_jump_target(),
)
)
state.push(cm)
s... | def op_SETUP_WITH(self, state, inst):
cm = state.pop() # the context-manager
state.push(cm)
yielded = state.make_temp()
state.push(yielded)
state.append(inst, contextmanager=cm)
state.push_block(
{
"kind": "with",
"end": inst.get_jump_target(),
}
)
... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def op_POP_BLOCK(self, state, inst):
blk = state.pop_block()
if blk["kind"] == BlockKind("TRY"):
state.append(inst, kind="try")
# Forces a new block
state.fork(pc=inst.next)
| def op_POP_BLOCK(self, state, inst):
state.pop_block()
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __init__(self, bytecode, pc, nstack, blockstack):
"""
Parameters
----------
bytecode : numba.bytecode.ByteCode
function bytecode
pc : int
program counter
nstack : int
stackdepth at entry
blockstack : Sequence[Dict]
A sequence of dictionary denoting entries... | def __init__(self, bytecode, pc, nstack, blockstack):
"""
Parameters
----------
bytecode : numba.bytecode.ByteCode
function bytecode
pc : int
program counter
nstack : int
stackdepth at entry
blockstack : Sequence[Dict]
A sequence of dictionary denoting entries... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def push_block(self, synblk):
"""Push a block to blockstack"""
assert "stack_depth" in synblk
self._blockstack.append(synblk)
| def push_block(self, synblk):
d = synblk.copy()
d["stack_depth"] = len(self._stack)
self._blockstack.append(d)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def pop_block(self):
"""Pop a block and unwind the stack"""
b = self._blockstack.pop()
self.reset_stack(b["stack_depth"])
return b
| def pop_block(self):
b = self._blockstack.pop()
new_stack = self._stack[: b["stack_depth"]]
_logger.debug("POP_BLOCK:\nold_stack=%s\nnew_stack=%s", self._stack, new_stack)
self._stack = new_stack
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def get_top_block(self, kind):
"""Find the first block that matches *kind*"""
kind = BlockKind(kind)
for bs in reversed(self._blockstack):
if bs["kind"] == kind:
return bs
| def get_top_block(self, kind):
for bs in reversed(self._blockstack):
if bs["kind"] == kind:
return bs
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def fork(self, pc, npop=0, npush=0, extra_block=None):
"""Fork the state"""
# Handle changes on the stack
stack = list(self._stack)
if npop:
assert 0 <= npop <= len(self._stack)
nstack = len(self._stack) - npop
stack = stack[:nstack]
if npush:
assert 0 <= npush
... | def fork(self, pc, npop=0):
"""Fork the state"""
assert 0 <= npop <= len(self._stack)
nstack = len(self._stack) - npop
stack = self._stack[:nstack]
self._outedges.append(Edge(pc=pc, stack=stack, blockstack=tuple(self._blockstack)))
self.terminate()
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def adapt_state_infos(state):
return AdaptBlockInfo(
insts=tuple(state.instructions),
outgoing_phis=state.outgoing_phis,
blockstack=state.blockstack_initial,
active_try_block=state.find_initial_try_block(),
outgoing_edgepushed=state.get_outgoing_edgepushed(),
)
| def adapt_state_infos(state):
return AdaptBlockInfo(
insts=tuple(state.instructions), outgoing_phis=state.outgoing_phis
)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def get_item_pointer(
context, builder, aryty, ary, inds, wraparound=False, boundscheck=False
):
# Set boundscheck=True for any pointer access that should be
# boundschecked. do_boundscheck() will handle enabling or disabling the
# actual boundschecking based on the user config.
shapes = unpack_tupl... | def get_item_pointer(builder, aryty, ary, inds, wraparound=False):
shapes = unpack_tuple(builder, ary.shape, count=aryty.ndim)
strides = unpack_tuple(builder, ary.strides, count=aryty.ndim)
return get_item_pointer2(
builder,
data=ary.data,
shape=shapes,
strides=strides,
... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def get_item_pointer2(
context,
builder,
data,
shape,
strides,
layout,
inds,
wraparound=False,
boundscheck=False,
):
# Set boundscheck=True for any pointer access that should be
# boundschecked. do_boundscheck() will handle enabling or disabling the
# actual boundscheckin... | def get_item_pointer2(builder, data, shape, strides, layout, inds, wraparound=False):
if wraparound:
# Wraparound
indices = []
for ind, dimlen in zip(inds, shape):
negative = builder.icmp_signed("<", ind, ind.type(0))
wrapped = builder.add(dimlen, ind)
sel... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def memset(builder, ptr, size, value):
"""
Fill *size* bytes starting from *ptr* with *value*.
"""
fn = builder.module.declare_intrinsic("llvm.memset", (voidptr_t, size.type))
ptr = builder.bitcast(ptr, voidptr_t)
if isinstance(value, int):
value = int8_t(value)
builder.call(fn, [ptr... | def memset(builder, ptr, size, value):
"""
Fill *size* bytes starting from *ptr* with *value*.
"""
fn = builder.module.declare_intrinsic("llvm.memset", (voidptr_t, size.type))
ptr = builder.bitcast(ptr, voidptr_t)
if isinstance(value, int):
value = int8_t(value)
builder.call(fn, [ptr... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _raw_memcpy(builder, func_name, dst, src, count, itemsize, align):
size_t = count.type
if isinstance(itemsize, utils.INT_TYPES):
itemsize = ir.Constant(size_t, itemsize)
memcpy = builder.module.declare_intrinsic(func_name, [voidptr_t, voidptr_t, size_t])
is_volatile = false_bit
builder.... | def _raw_memcpy(builder, func_name, dst, src, count, itemsize, align):
size_t = count.type
if isinstance(itemsize, utils.INT_TYPES):
itemsize = ir.Constant(size_t, itemsize)
memcpy = builder.module.declare_intrinsic(func_name, [voidptr_t, voidptr_t, size_t])
align = ir.Constant(ir.IntType(32), ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_split(a, sep=None, maxsplit=-1):
if not (
maxsplit == -1
or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral))
):
return None
if isinstance(a, types.UnicodeCharSeq):
if isinstance(sep, types.UnicodeCharSeq):
def impl(a,... | def unicode_charseq_split(a, sep=None, maxsplit=-1):
if not (
maxsplit == -1
or isinstance(maxsplit, (types.Omitted, types.Integer, types.IntegerLiteral))
):
return None
if isinstance(a, types.UnicodeCharSeq):
if isinstance(sep, types.UnicodeCharSeq):
def impl(a,... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, sep=None, maxsplit=-1):
return _map_bytes(a._to_str().split(maxsplit=maxsplit))
| def impl(a, maxsplit=-1):
return _map_bytes(a._to_str().split(maxsplit=maxsplit))
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_ljust(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if is_default(fillchar, " "):
def impl(a, width, fillchar=" "):
return str(a).ljust(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
de... | def unicode_charseq_ljust(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if fillchar == " ":
def impl(a, width):
return str(a).ljust(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
def impl(a, width, fillcha... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, width, fillchar=" "):
return str(a).ljust(width, fillchar)
| def impl(a, width, fillchar):
return str(a).ljust(width, fillchar)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_rjust(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if is_default(fillchar, " "):
def impl(a, width, fillchar=" "):
return str(a).rjust(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
de... | def unicode_charseq_rjust(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if fillchar == " ":
def impl(a, width):
return str(a).rjust(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
def impl(a, width, fillcha... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, width, fillchar=" "):
return str(a).rjust(width, fillchar)
| def impl(a, width, fillchar):
return str(a).rjust(width, fillchar)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_center(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if is_default(fillchar, " "):
def impl(a, width, fillchar=" "):
return str(a).center(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
... | def unicode_charseq_center(a, width, fillchar=" "):
if isinstance(a, types.UnicodeCharSeq):
if fillchar == " ":
def impl(a, width):
return str(a).center(width)
return impl
elif isinstance(fillchar, types.UnicodeCharSeq):
def impl(a, width, fillc... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, width, fillchar=" "):
return str(a).center(width, fillchar)
| def impl(a, width, fillchar):
return str(a).center(width, fillchar)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_lstrip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if is_nonelike(chars):
def impl(a, chars=None):
return str(a).lstrip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, chars=None):
... | def unicode_charseq_lstrip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if chars is None or isinstance(chars, types.NoneType):
def impl(a):
return str(a).lstrip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, c... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, chars=None):
return str(a).lstrip(chars)
| def impl(a, chars):
return str(a).lstrip(chars)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_rstrip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if is_nonelike(chars):
def impl(a, chars=None):
return str(a).rstrip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, chars=None):
... | def unicode_charseq_rstrip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if chars is None or isinstance(chars, types.NoneType):
def impl(a):
return str(a).rstrip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, c... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, chars=None):
return str(a).rstrip(chars)
| def impl(a, chars):
return str(a).rstrip(chars)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def unicode_charseq_strip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if is_nonelike(chars):
def impl(a, chars=None):
return str(a).strip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, chars=None):
... | def unicode_charseq_strip(a, chars=None):
if isinstance(a, types.UnicodeCharSeq):
if chars is None or isinstance(chars, types.NoneType):
def impl(a):
return str(a).strip()
return impl
elif isinstance(chars, types.UnicodeCharSeq):
def impl(a, cha... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def impl(a, chars=None):
return str(a).strip(chars)
| def impl(a, chars):
return str(a).strip(chars)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _rebuild(
cls,
target_context,
libdata,
fndesc,
env,
signature,
objectmode,
interpmode,
lifted,
typeann,
reload_init,
):
if reload_init:
# Re-run all
for fn in reload_init:
fn()
library = target_context.codegen().unserialize_library(li... | def _rebuild(
cls,
target_context,
libdata,
fndesc,
env,
signature,
objectmode,
interpmode,
lifted,
typeann,
reload_init,
):
if reload_init:
# Re-run all
for fn in reload_init:
fn()
library = target_context.codegen().unserialize_library(li... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _make_subtarget(targetctx, flags):
"""
Make a new target context from the given target context and flags.
"""
subtargetoptions = {}
if flags.debuginfo:
subtargetoptions["enable_debuginfo"] = True
if flags.boundscheck:
subtargetoptions["enable_boundscheck"] = True
if flags... | def _make_subtarget(targetctx, flags):
"""
Make a new target context from the given target context and flags.
"""
subtargetoptions = {}
if flags.debuginfo:
subtargetoptions["enable_debuginfo"] = True
if flags.boundcheck:
subtargetoptions["enable_boundcheck"] = True
if flags.n... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _compile_core(self):
"""
Populate and run compiler pipeline
"""
pms = self.define_pipelines()
for pm in pms:
pipeline_name = pm.pipeline_name
func_name = "%s.%s" % (
self.state.func_id.modname,
self.state.func_id.func_qualname,
)
event("Pi... | def _compile_core(self):
"""
Populate and run compiler pipeline
"""
pms = self.define_pipelines()
for pm in pms:
pipeline_name = pm.pipeline_name
event("Pipeline: %s" % pipeline_name)
self.state.metadata["pipeline_times"] = {pipeline_name: pm.exec_times}
is_final_pipe... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def define_nopython_pipeline(state, name="nopython"):
"""Returns an nopython mode pipeline based PassManager"""
pm = PassManager(name)
if state.func_ir is None:
pm.add_pass(TranslateByteCode, "analyzing bytecode")
pm.add_pass(FixupArgs, "fix up args")
pm.add_pass(IRProcessing, "processin... | def define_nopython_pipeline(state, name="nopython"):
"""Returns an nopython mode pipeline based PassManager"""
pm = PassManager(name)
if state.func_ir is None:
pm.add_pass(TranslateByteCode, "analyzing bytecode")
pm.add_pass(FixupArgs, "fix up args")
pm.add_pass(IRProcessing, "processin... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def define_objectmode_pipeline(state, name="object"):
"""Returns an object-mode pipeline based PassManager"""
pm = PassManager(name)
if state.func_ir is None:
pm.add_pass(TranslateByteCode, "analyzing bytecode")
pm.add_pass(FixupArgs, "fix up args")
pm.add_pass(IRProcessing, "processing ... | def define_objectmode_pipeline(state, name="object"):
"""Returns an object-mode pipeline based PassManager"""
pm = PassManager(name)
if state.func_ir is None:
pm.add_pass(TranslateByteCode, "analyzing bytecode")
pm.add_pass(FixupArgs, "fix up args")
pm.add_pass(IRProcessing, "processing ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def debug_print(pass_name, print_condition, printable_condition):
if pass_name in print_condition:
fid = internal_state.func_id
args = (
fid.modname,
fid.func_qualname,
self.pipeline_name,
printable_condition,
pass_name,
)
p... | def debug_print(*args, **kwargs):
if _DEBUG:
print(*args, **kwargs)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _debug_init(self):
# determine after which passes IR dumps should take place
def parse(conf_item):
print_passes = []
if conf_item != "none":
if conf_item == "all":
print_passes = [x.name() for (x, _) in self.passes]
else:
# we don't val... | def _debug_init(self):
# determine after which passes IR dumps should take place
print_passes = []
if config.DEBUG_PRINT_AFTER != "none":
if config.DEBUG_PRINT_AFTER == "all":
print_passes = [x.name() for (x, _) in self.passes]
else:
# we don't validate whether the na... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def finalize(self):
"""
Finalize the PassManager, after which no more passes may be added
without re-finalization.
"""
self._analysis = self.dependency_analysis()
self._print_after, self._print_before, self._print_wrap = self._debug_init()
self._finalized = True
| def finalize(self):
"""
Finalize the PassManager, after which no more passes may be added
without re-finalization.
"""
self._analysis = self.dependency_analysis()
self._print_after = self._debug_init()
self._finalized = True
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _runPass(self, index, pss, internal_state):
mutated = False
def check(func, compiler_state):
mangled = func(compiler_state)
if mangled not in (True, False):
msg = (
"CompilerPass implementations should return True/False. "
"CompilerPass with name ... | def _runPass(self, index, pss, internal_state):
mutated = False
def check(func, compiler_state):
mangled = func(compiler_state)
if mangled not in (True, False):
msg = (
"CompilerPass implementations should return True/False. "
"CompilerPass with name ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def process_environ(self, environ):
def _readenv(name, ctor, default):
value = environ.get(name)
if value is None:
return default() if callable(default) else default
try:
return ctor(value)
except Exception:
warnings.warn(
"environ ... | def process_environ(self, environ):
def _readenv(name, ctor, default):
value = environ.get(name)
if value is None:
return default() if callable(default) else default
try:
return ctor(value)
except Exception:
warnings.warn(
"environ ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def add_edge(self, src, dest, data=None):
"""
Add an edge from node *src* to node *dest*, with optional
per-edge *data*.
If such an edge already exists, it is replaced (duplicate edges
are not possible).
"""
if src not in self._nodes:
raise ValueError(
"Cannot add edge as... | def add_edge(self, src, dest, data=None):
"""
Add an edge from node *src* to node *dest*, with optional
per-edge *data*.
If such an edge already exists, it is replaced (duplicate edges
are not possible).
"""
assert src in self._nodes
assert dest in self._nodes
self._add_edge(src, des... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def run(self):
for inst in self._iter_inst():
fname = "op_%s" % inst.opname
fn = getattr(self, fname, None)
if fn is not None:
fn(inst)
elif inst.is_jump:
# this catches e.g. try... except
l = Loc(self.bytecode.func_id.filename, inst.lineno)
... | def run(self):
for inst in self._iter_inst():
fname = "op_%s" % inst.opname
fn = getattr(self, fname, None)
if fn is not None:
fn(inst)
else:
# this catches e.g. try... except
if inst.is_jump:
l = Loc(self.bytecode.func_id.filename,... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __eq__(self, other):
if not isinstance(other, CFGraph):
raise NotImplementedError
# A few derived items are checked to makes sure process() has been
# invoked equally.
for x in [
"_nodes",
"_edge_data",
"_entry_point",
"_preds",
"_succs",
"_do... | def __eq__(self, other):
return isinstance(other, Loop) and other.header == self.header
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def compile_cuda(pyfunc, return_type, args, debug, inline):
# First compilation will trigger the initialization of the CUDA backend.
from .descriptor import CUDATargetDesc
typingctx = CUDATargetDesc.typingctx
targetctx = CUDATargetDesc.targetctx
# TODO handle debug flag
flags = compiler.Flags()... | def compile_cuda(pyfunc, return_type, args, debug, inline):
# First compilation will trigger the initialization of the CUDA backend.
from .descriptor import CUDATargetDesc
typingctx = CUDATargetDesc.typingctx
targetctx = CUDATargetDesc.targetctx
# TODO handle debug flag
flags = compiler.Flags()... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _atomic_dispatcher(dispatch_fn):
def imp(context, builder, sig, args):
# The common argument handling code
aryty, indty, valty = sig.args
ary, inds, val = args
dtype = aryty.dtype
indty, indices = _normalize_indices(context, builder, indty, inds)
if dtype != val... | def _atomic_dispatcher(dispatch_fn):
def imp(context, builder, sig, args):
# The common argument handling code
aryty, indty, valty = sig.args
ary, inds, val = args
dtype = aryty.dtype
indty, indices = _normalize_indices(context, builder, indty, inds)
if dtype != val... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def imp(context, builder, sig, args):
# The common argument handling code
aryty, indty, valty = sig.args
ary, inds, val = args
dtype = aryty.dtype
indty, indices = _normalize_indices(context, builder, indty, inds)
if dtype != valty:
raise TypeError("expect %s but got %s" % (dtype, valt... | def imp(context, builder, sig, args):
# The common argument handling code
aryty, indty, valty = sig.args
ary, inds, val = args
dtype = aryty.dtype
indty, indices = _normalize_indices(context, builder, indty, inds)
if dtype != valty:
raise TypeError("expect %s but got %s" % (dtype, valt... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def ptx_atomic_cas_tuple(context, builder, sig, args):
aryty, oldty, valty = sig.args
ary, old, val = args
dtype = aryty.dtype
lary = context.make_array(aryty)(context, builder, ary)
zero = context.get_constant(types.intp, 0)
ptr = cgutils.get_item_pointer(context, builder, aryty, lary, (zero,)... | def ptx_atomic_cas_tuple(context, builder, sig, args):
aryty, oldty, valty = sig.args
ary, old, val = args
dtype = aryty.dtype
lary = context.make_array(aryty)(context, builder, ary)
zero = context.get_constant(types.intp, 0)
ptr = cgutils.get_item_pointer(builder, aryty, lary, (zero,))
if ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def jit(
func_or_sig=None,
argtypes=None,
device=False,
inline=False,
bind=True,
link=[],
debug=None,
**kws,
):
"""
JIT compile a python function conforming to the CUDA Python specification.
If a signature is supplied, then a function is returned that takes a
function to ... | def jit(
func_or_sig=None,
argtypes=None,
device=False,
inline=False,
bind=True,
link=[],
debug=None,
**kws,
):
"""
JIT compile a python function conforming to the CUDA Python specification.
If a signature is supplied, then a function is returned that takes a
function to ... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def jit(
func_or_sig=None,
device=False,
debug=False,
argtypes=None,
inline=False,
restype=None,
fastmath=False,
link=None,
boundscheck=None,
):
# Here for API compatibility
if boundscheck is not None:
raise NotImplementedError("bounds checking is not supported for CU... | def jit(
func_or_sig=None,
device=False,
debug=False,
argtypes=None,
inline=False,
restype=None,
fastmath=False,
link=None,
):
if link is not None:
raise NotImplementedError("Cannot link PTX in the simulator")
# Check for first argument specifying types - in that case the... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def jit(
signature_or_function=None,
locals={},
target="cpu",
cache=False,
pipeline_class=None,
boundscheck=False,
**options,
):
"""
This decorator is used to compile a Python function into native code.
Args
-----
signature_or_function:
The (optional) signature o... | def jit(
signature_or_function=None,
locals={},
target="cpu",
cache=False,
pipeline_class=None,
**options,
):
"""
This decorator is used to compile a Python function into native code.
Args
-----
signature_or_function:
The (optional) signature or list of signatures to... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _compute_extent(self):
firstidx = [0] * self.ndim
lastidx = [s - 1 for s in self.shape]
start = compute_index(firstidx, self.dims)
stop = compute_index(lastidx, self.dims) + self.itemsize
stop = max(stop, start) # ensure positive extent
return Extent(start, stop)
| def _compute_extent(self):
firstidx = [0] * self.ndim
lastidx = [s - 1 for s in self.shape]
start = compute_index(firstidx, self.dims)
stop = compute_index(lastidx, self.dims) + self.itemsize
stop = max(stop, start) # ensure postive extent
return Extent(start, stop)
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def ravel(self, order="C"):
if order not in "CFA":
raise ValueError("order not C|F|A")
if self.ndim <= 1:
return self
elif order in "CA" and self.is_c_contig or order in "FA" and self.is_f_contig:
newshape = (self.size,)
newstrides = (self.itemsize,)
arr = self.from... | def ravel(self, order="C"):
if order not in "CFA":
raise ValueError("order not C|F|A")
if self.ndim <= 1:
return self
elif order == "C" and self.is_c_contig or order == "F" and self.is_f_contig:
newshape = (self.size,)
newstrides = (self.itemsize,)
arr = self.from_d... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def overload_attribute(typ, attr, **kwargs):
"""
A decorator marking the decorated function as typing and implementing
attribute *attr* for the given Numba type in nopython mode.
*kwargs* are passed to the underlying `@overload` call.
Here is an example implementing .nbytes for array types::
... | def overload_attribute(typ, attr):
"""
A decorator marking the decorated function as typing and implementing
attribute *attr* for the given Numba type in nopython mode.
Here is an example implementing .nbytes for array types::
@overload_attribute(types.Array, 'nbytes')
def array_nbytes... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def decorate(overload_func):
template = make_overload_attribute_template(
typ,
attr,
overload_func,
inline=kwargs.get("inline", "never"),
)
infer_getattr(template)
overload(overload_func, **kwargs)(overload_func)
return overload_func
| def decorate(overload_func):
template = make_overload_attribute_template(typ, attr, overload_func)
infer_getattr(template)
return overload_func
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def overload_method(typ, attr, **kwargs):
"""
A decorator marking the decorated function as typing and implementing
attribute *attr* for the given Numba type in nopython mode.
*kwargs* are passed to the underlying `@overload` call.
Here is an example implementing .take() for array types::
... | def overload_method(typ, attr):
"""
A decorator marking the decorated function as typing and implementing
attribute *attr* for the given Numba type in nopython mode.
Here is an example implementing .take() for array types::
@overload_method(types.Array, 'take')
def array_take(arr, indi... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def decorate(overload_func):
template = make_overload_method_template(
typ,
attr,
overload_func,
inline=kwargs.get("inline", "never"),
)
infer_getattr(template)
overload(overload_func, **kwargs)(overload_func)
return overload_func
| def decorate(overload_func):
template = make_overload_method_template(typ, attr, overload_func)
infer_getattr(template)
return overload_func
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _get_callee_args(call_expr, callee, loc, func_ir):
"""Get arguments for calling 'callee', including the default arguments.
keyword arguments are currently only handled when 'callee' is a function.
"""
if call_expr.op == "call":
args = list(call_expr.args)
elif call_expr.op == "getattr":
... | def _get_callee_args(call_expr, callee, loc, func_ir):
"""Get arguments for calling 'callee', including the default arguments.
keyword arguments are currently only handled when 'callee' is a function.
"""
args = list(call_expr.args)
debug_print = _make_debug_print("inline_closure_call default handli... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _inline_const_arraycall(block, func_ir, context, typemap, calltypes):
"""Look for array(list) call where list is a constant list created by build_list,
and turn them into direct array creation and initialization, if the following
conditions are met:
1. The build_list call immediate precedes the ar... | def _inline_const_arraycall(block, func_ir, context, typemap, calltypes):
"""Look for array(list) call where list is a constant list created by build_list,
and turn them into direct array creation and initialization, if the following
conditions are met:
1. The build_list call immediate preceeds the ar... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def __init__(self, func_id):
self.func_id = func_id
self.arg_count = func_id.arg_count
self.arg_names = func_id.arg_names
self.loc = self.first_loc = ir.Loc.from_function_id(func_id)
self.is_generator = func_id.is_generator
# { inst offset : ir.Block }
self.blocks = {}
# { name: [defini... | def __init__(self, func_id):
self.func_id = func_id
self.arg_count = func_id.arg_count
self.arg_names = func_id.arg_names
self.loc = self.first_loc = ir.Loc.from_function_id(func_id)
self.is_generator = func_id.is_generator
# { inst offset : ir.Block }
self.blocks = {}
# { name: [defini... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def interpret(self, bytecode):
"""
Generate IR for this bytecode.
"""
self.bytecode = bytecode
self.scopes = []
global_scope = ir.Scope(parent=None, loc=self.loc)
self.scopes.append(global_scope)
if PYVERSION < (3, 7):
# Control flow analysis
self.cfa = controlflow.Cont... | def interpret(self, bytecode):
"""
Generate IR for this bytecode.
"""
self.bytecode = bytecode
self.scopes = []
global_scope = ir.Scope(parent=None, loc=self.loc)
self.scopes.append(global_scope)
if PYVERSION < (3, 7):
# Control flow analysis
self.cfa = controlflow.Cont... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _start_new_block(self, offset):
oldblock = self.current_block
self.insert_block(offset)
# Ensure the last block is terminated
if oldblock is not None and not oldblock.is_terminated:
# Handle ending try block.
tryblk = self.dfainfo.active_try_block
# If there's an active try-b... | def _start_new_block(self, offset):
oldblock = self.current_block
self.insert_block(offset)
# Ensure the last block is terminated
if oldblock is not None and not oldblock.is_terminated:
jmp = ir.Jump(offset, loc=self.loc)
oldblock.append(jmp)
# Get DFA block info
self.dfainfo = s... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def _end_current_block(self):
# Handle try block
if not self.current_block.is_terminated:
tryblk = self.dfainfo.active_try_block
if tryblk is not None:
self._insert_exception_check()
# Handle normal block cleanup
self._remove_unused_temporaries()
self._insert_outgoing_phi... | def _end_current_block(self):
self._remove_unused_temporaries()
self._insert_outgoing_phis()
| https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
def store(self, value, name, redefine=False):
"""
Store *value* (a Expr or Var instance) into the variable named *name*
(a str object). Returns the target variable.
"""
if redefine or self.current_block_offset in self.cfa.backbone:
rename = not (name in self.code_cellvars)
target = s... | def store(self, value, name, redefine=False):
"""
Store *value* (a Expr or Var instance) into the variable named *name*
(a str object).
"""
if redefine or self.current_block_offset in self.cfa.backbone:
rename = not (name in self.code_cellvars)
target = self.current_scope.redefine(na... | https://github.com/numba/numba/issues/4944 | Traceback (most recent call last):
File "/home/ibutygin/miniconda3/envs/NUMBA_CUSTOM/lib/python3.7/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
IndexError: tuple index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent cal... | IndexError |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.