Siu Kwan Lam

Results 276 comments of Siu Kwan Lam

I can replicate. At where the traceback points to, the `dispatcher` is oddly not a dispatcher. ``` (Pdb) self.dispatcher ```

The dispatcher problem is just caused by DISABLE_JIT. After turning it off, the program is not completing. This needs some GDB debugging.

@stuartarchibald identified that this is probably caused by out-of-memory error. The allocation requested is too big. I confirmed that by running `dmesg | grep -i "killed process"` after the python...

i can replicate this on main on osx-64. Problematic lines in the cython code is slightly different though: ``` File "", line 69, in cfunc.to_py.__Pyx_CFunc_893235__29_pydevd_sys_monitoring_cython_object__lParen__etc_to_py_4code_18instruction_offset.wrap File "_pydevd_sys_monitoring\\_pydevd_sys_monitoring_cython.pyx", line 1662, in...

Summarizing what I found: - debugpy is expecting new Python frame for the callee but Numba is not setting up callee frames. - As of 3.12, CPython `sys.monitoring` code and...

First, you may not need the inlining. Numba's `inline='always'` is for working around type inference limitations and is not a performance thing link in C++. See details in https://numba.readthedocs.io/en/stable/developer/inlining.html?highlight=inline#notes-on-inlining. Second,...

From triage discussion (https://hackmd.io/9blSGDlnRu2hsfm6ee0Exg): The reason that the `njit` version works is because the inliner pass do not have type info at that stage. Type info is required for DCE...

Looks like PassManagerBuilder has a lot of new options: https://github.com/llvm-mirror/llvm/blob/2c4ca6832fa6b306ee6a7010bfb80a3f2596f824/lib/Transforms/IPO/PassManagerBuilder.cpp#L150-L177 Update: This is LLVM10

hm... LLVM14 actual have it on by default: https://github.com/llvm/llvm-project/blob/f28c006a5895fc0e329fe15fead81e37457cb1d1/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp#L194-L223

Looks like code path going through [`OmittedArg`](https://github.com/numba/numba/blob/3ec12030586647b0b3b81918256eaa4d11d63780/numba/core/dispatcher.py#L71) is a slow path. `OmittedArg` is used to wrap default arguments.